summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaotfload.dtx2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index a593b4e..3101f8c 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -569,7 +569,7 @@ luaotfload.loadmodule('font-clr.lua')
% \begin{macrocode}
local function def_font(...)
local fontdata = fonts.define.read(...)
- if fontdata then
+ if type(fontdata) == "table" then
local capheight
local units = fontdata.units
local size = fontdata.size