summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-shp.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-09-24 15:05:48 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-09-24 15:05:48 +0200
commitb7acaab4eb5fb8d6e3a6aa86a86c2b0576bde6ea (patch)
tree2a98bf1dfed3e2c7ef389acaddb655811d1fba33 /tex/context/base/mkiv/font-shp.lua
parent7c2efd42267783f01b64e0a47cba89f84742618c (diff)
downloadcontext-b7acaab4eb5fb8d6e3a6aa86a86c2b0576bde6ea.tar.gz
2018-09-24 14:19:00
Diffstat (limited to 'tex/context/base/mkiv/font-shp.lua')
-rw-r--r--tex/context/base/mkiv/font-shp.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-shp.lua b/tex/context/base/mkiv/font-shp.lua
index 6c3112b25..31971b880 100644
--- a/tex/context/base/mkiv/font-shp.lua
+++ b/tex/context/base/mkiv/font-shp.lua
@@ -296,6 +296,12 @@ local f_c = formatters["%F %F %F %F %F %F c"]
local f_l = formatters["%F %F l"]
local f_m = formatters["%F %F m"]
+directives.register("pdf.stripzeros",function()
+ f_c = formatters["%N %N %N %N %N %N c"]
+ f_l = formatters["%N %N l"]
+ f_m = formatters["%N %N m"]
+end)
+
local function segmentstopdf(segments,factor,bt,et)
local t = { }
local m = 0
@@ -382,7 +388,7 @@ otf.features.register {
}
}
--- In the end it is easier to just provide the new charstring (cff) and points (ttdf). First
+-- In the end it is easier to just provide the new charstring (cff) and points (ttf). First
-- of all we already have the right information so there is no need to patch the already complex
-- backend code (we only need to make sure the cff is valid). Also, I prototyped support for
-- these fonts using (converted to) normal postscript shapes, a functionality that was already