diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-10-02 13:21:40 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-10-02 13:21:40 +0200 |
commit | 6ab4432f6fe56cc63e53aeb256c89f01a04fb84f (patch) | |
tree | 5b45957afb0df55f2d5f06d43e6ac1c17d9f94cc /tex/context/base/mkiv/font-tpk.lua | |
parent | 7b12427f475e64e06f5dd7b537462b6d990526f6 (diff) | |
download | context-6ab4432f6fe56cc63e53aeb256c89f01a04fb84f.tar.gz |
2019-10-02 12:50:00
Diffstat (limited to 'tex/context/base/mkiv/font-tpk.lua')
-rw-r--r-- | tex/context/base/mkiv/font-tpk.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-tpk.lua b/tex/context/base/mkiv/font-tpk.lua index 26e3fc0f0..bdfb0c2ee 100644 --- a/tex/context/base/mkiv/font-tpk.lua +++ b/tex/context/base/mkiv/font-tpk.lua @@ -282,7 +282,8 @@ ID %t EI Q]] ] - function readers.pktopdf(glyph,width) + function readers.pktopdf(glyph,data,factor) + local width = data.width * factor local xsize = glyph.xsize or 0 local ysize = glyph.ysize or 0 local xoffset = glyph.xoffset or 0 @@ -319,7 +320,7 @@ Q]] ] r = r + 1 ; result[r] = char(extract(b,8,8)) end end - return template(width,llx,lly,urx,ury,xdpi,ydpi,llx,lly,xsize,ysize,result) + return template(width,llx,lly,urx,ury,xdpi,ydpi,llx,lly,xsize,ysize,result), width end function readers.loadpk(filename) |