diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-04-21 12:41:27 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-04-21 12:41:27 +0200 |
commit | 726df97b4fd308f923fb1b4bf00ce533a7c88ebe (patch) | |
tree | 4dcfca0d800cb2b27ef98f89382481e8bd5647a2 /tex/context/base/mkiv/font-con.lua | |
parent | 595681ed25471f1206e4942adbf0abd664fa7e11 (diff) | |
download | context-726df97b4fd308f923fb1b4bf00ce533a7c88ebe.tar.gz |
2016-04-21 12:17:00
Diffstat (limited to 'tex/context/base/mkiv/font-con.lua')
-rw-r--r-- | tex/context/base/mkiv/font-con.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/font-con.lua b/tex/context/base/mkiv/font-con.lua index f36f75077..b11853533 100644 --- a/tex/context/base/mkiv/font-con.lua +++ b/tex/context/base/mkiv/font-con.lua @@ -776,9 +776,14 @@ function constructors.scale(tfmdata,specification) elseif autoitalicamount then -- itlc feature local vi = description.italic if not vi then - local vi = description.boundingbox[3] - description.width + autoitalicamount - if vi > 0 then -- < 0 indicates no overshoot or a very small auto italic - chr.italic = vi*hdelta + local bb = description.boundingbox + if bb then + local vi = bb[3] - description.width + autoitalicamount + if vi > 0 then -- < 0 indicates no overshoot or a very small auto italic + chr.italic = vi*hdelta + end + else + -- report_defining("no boundingbox for character %C in font %a, fullname %a, filename %a",unicode,name,fullname,filename) end elseif vi ~= 0 then chr.italic = vi*hdelta |