diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-11-30 20:31:49 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-11-30 20:31:49 +0100 |
commit | 273b29a84706a7cefb56963300a7f54f3ffe147f (patch) | |
tree | a947c63080fcdc7a042dfd6ca4f667fff609e6fc /tex/context/base/mkiv/font-con.lua | |
parent | 7ecbcaaf68d152851591dbb5931a6eb15d155019 (diff) | |
download | context-273b29a84706a7cefb56963300a7f54f3ffe147f.tar.gz |
2019-11-29 21:57:00
Diffstat (limited to 'tex/context/base/mkiv/font-con.lua')
-rw-r--r-- | tex/context/base/mkiv/font-con.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-con.lua b/tex/context/base/mkiv/font-con.lua index 47b8580d4..cd1b56c83 100644 --- a/tex/context/base/mkiv/font-con.lua +++ b/tex/context/base/mkiv/font-con.lua @@ -51,6 +51,8 @@ constructors.cacheintex = true -- so we see the original table in fonts.fon constructors.addtounicode = true +constructors.fixprotrusion = true + -- This might become an interface: local designsizes = allocate() @@ -599,7 +601,10 @@ function constructors.scale(tfmdata,specification) -- constructors.enhanceparameters(targetparameters) -- official copies for us, now virtual -- - local protrusionfactor = (targetquad ~= 0 and 1000/targetquad) or 0 + -- I need to fix this in luatex ... get rid of quad there so that we can omit this here. + -- + local protrusionfactor = constructors.fixprotrusion and ((targetquad ~= 0 and 1000/targetquad) or 1) or 1 + -- local scaledwidth = defaultwidth * hdelta local scaledheight = defaultheight * vdelta local scaleddepth = defaultdepth * vdelta |