summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otf.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-05-31 23:40:49 +0300
committerMarius <mariausol@gmail.com>2013-05-31 23:40:49 +0300
commit9a194c86a8d31ce7f07712961e5ec72023a00823 (patch)
treef5a34823fdacf9be583a3f63faa14b39177759bd /tex/context/base/font-otf.lua
parentcc1c43092378e4bb53255c8aa165a6063f829c33 (diff)
downloadcontext-9a194c86a8d31ce7f07712961e5ec72023a00823.tar.gz
beta 2013.05.31 21:57
Diffstat (limited to 'tex/context/base/font-otf.lua')
-rw-r--r--tex/context/base/font-otf.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/font-otf.lua b/tex/context/base/font-otf.lua
index c1f2f14fc..401de4bda 100644
--- a/tex/context/base/font-otf.lua
+++ b/tex/context/base/font-otf.lua
@@ -1934,8 +1934,9 @@ local function copytotfm(data,cache_id)
local units = metadata.units_per_em or 1000
--
if units == 0 then -- catch bugs in fonts
- units = 1000
+ units = 1000 -- maybe 2000 when ttf
metadata.units_per_em = 1000
+ report_otf("changing %a units to %a",0,units)
end
--
parameters.slant = 0