diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-19 03:28:47 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-19 03:28:47 +0200 |
commit | f2b2b467de8e4c58a19859a713694ae50afb00be (patch) | |
tree | 9320b025aa773302fc1ebe51c09f0e614914cfc7 /otfl-font-otf.lua | |
parent | 2b0964ac028a724842ad37514d30c8bccbf9c354 (diff) | |
download | luaotfload-f2b2b467de8e4c58a19859a713694ae50afb00be.tar.gz |
Sync with ConTeXt beta 2011.10.19 00:02
Diffstat (limited to 'otfl-font-otf.lua')
-rw-r--r-- | otfl-font-otf.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua index 6a75a0c..cab6fae 100644 --- a/otfl-font-otf.lua +++ b/otfl-font-otf.lua @@ -1838,6 +1838,11 @@ local function copytotfm(data,cache_id) local fullname = metadata.fullname or fontname local units = metadata.units_per_em or 1000 -- + if units == 0 then -- catch bugs in fonts + units = 1000 + metadata.units_per_em = 1000 + end + -- parameters.slant = 0 parameters.space = spaceunits -- 3.333 (cmr10) parameters.space_stretch = units/2 -- 500 -- 1.666 (cmr10) |