diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-07-30 01:27:40 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-07-30 01:27:40 +0200 |
commit | 6db2cd924d26ade933812f90701343f06c8653f2 (patch) | |
tree | 5aaa37e6fe8e03b827c60a81f66700fde3b971e9 /tex/context/base/mkxl/lpdf-emb.lmt | |
parent | df12f144a2cb09cec29a95df26bdfc5ccad58aff (diff) | |
download | context-6db2cd924d26ade933812f90701343f06c8653f2.tar.gz |
2021-07-30 00:43:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-emb.lmt')
-rw-r--r-- | tex/context/base/mkxl/lpdf-emb.lmt | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/tex/context/base/mkxl/lpdf-emb.lmt b/tex/context/base/mkxl/lpdf-emb.lmt index f9fb7d3c2..daa7e41a1 100644 --- a/tex/context/base/mkxl/lpdf-emb.lmt +++ b/tex/context/base/mkxl/lpdf-emb.lmt @@ -279,6 +279,12 @@ end includecidset = false forcecidset = false -- for private testing only + function lpdf.setincludecidset(v) + -- incredible ... it's obselete, no viewer needs it so why still this crap + -- so in the end it had to be introduced again + includecidset = v + end + directives.register("backend.pdf.forcecidset",function(v) forcecidset = v end) @@ -873,7 +879,7 @@ do StemV = scale(stemv), XHeight = scale(xheight), FontFile2 = pdfreference(pdfflushstreamobject(fontdata)), --- CIDSet = tocidset, + CIDSet = tocidset, -- no longer needed but verifyers want it Metadata = fontmeta and pdfreference(pdfflushstreamobject(fontmeta)) or nil, } local parent = pdfdictionary { @@ -1827,13 +1833,17 @@ do elseif kind == "user" then return setmetatableindex(function(t,k) local list = data[k] - local kind = list.kind local v - if kind == "values" then - local d = list.data - v = direct(d.r or 0,d.g or 0,d.b or 0) - elseif kind == "attributes" then - v = indirect(list.color,list.transparency) + if list then + local kind = list.kind + if kind == "values" then + local d = list.data + v = direct(d.r or 0,d.g or 0,d.b or 0) + elseif kind == "attributes" then + v = indirect(list.color,list.transparency) + else + v = false -- textcolor + end else v = false -- textcolor end |