From f2b2b467de8e4c58a19859a713694ae50afb00be Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 19 Oct 2011 03:28:47 +0200 Subject: Sync with ConTeXt beta 2011.10.19 00:02 --- otfl-font-otf.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'otfl-font-otf.lua') 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) -- cgit v1.2.3