summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-06-05 23:31:04 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-06-05 23:31:04 +0300
commit2a3e94649fb3f0dde4f54ed456ceed75defa46ff (patch)
tree7f71b60e3231a57e40abc5de97ddc9306f08c9bb /luaotfload.dtx
parent18340b7b6238d2c9362bd6920c9b7031f7dd794a (diff)
downloadluaotfload-2a3e94649fb3f0dde4f54ed456ceed75defa46ff.tar.gz
Make sure |fontdata| is a table
If the font were already loaded in TeX, fontdata will be the internal font number of the already loaded font.
Diffstat (limited to 'luaotfload.dtx')
-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