diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-05-12 19:57:39 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-05-12 19:57:39 +0200 |
commit | 5f6a7c6790baa7e524de5b5bf71a29ea757378f6 (patch) | |
tree | d26bcd9e722c4f2c1dfe8f375669d5c0b3fc4972 /tex/context/base/mkiv/back-lpd.lua | |
parent | c49d2942bae7074f3bd4c04b6ee895cee1697ca3 (diff) | |
download | context-5f6a7c6790baa7e524de5b5bf71a29ea757378f6.tar.gz |
2019-05-12 19:16:00
Diffstat (limited to 'tex/context/base/mkiv/back-lpd.lua')
-rw-r--r-- | tex/context/base/mkiv/back-lpd.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/back-lpd.lua b/tex/context/base/mkiv/back-lpd.lua index 1bb4ab846..9a52130b8 100644 --- a/tex/context/base/mkiv/back-lpd.lua +++ b/tex/context/base/mkiv/back-lpd.lua @@ -175,7 +175,8 @@ local pdfcharacters local horizontalmode = true ----- widefontmode = true local scalefactor = 1 -local threshold = 655360 / (10 * 5) -- default is 5 +----- threshold = 655360 / (10 * 5) -- default is 5 +local threshold = 655360 * 50 / 100 local tjfactor = 100 / 65536 lpdf.usedcharacters = usedcharacters @@ -190,7 +191,8 @@ local function updatefontstate(font) horizontalmode = fontparameters.writingmode ~= "vertical" -- widefontmode = fontproperties.encodingbytes == 2 scalefactor = (designsize/size) * tjfactor - threshold = designsize / (10 * (fontproperties.threshold or 5)) + -- threshold = designsize / (10 * (fontproperties.threshold or 5)) + threshold = designsize * (fontproperties.threshold or 50) / 100 end -- helpers @@ -502,6 +504,7 @@ local flushcharacter do if move or need_tm then if not need_tm then if horizontalmode then +-- print(tj_delta,threshold) if (saved_text_pos_v + tmty) ~= pdf_v then need_tm = true elseif tj_delta >= threshold or tj_delta <= -threshold then |