summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-emb.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/lpdf-emb.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-emb.lmt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/lpdf-emb.lmt b/tex/context/base/mkxl/lpdf-emb.lmt
index 303704aa7..81e769aeb 100644
--- a/tex/context/base/mkxl/lpdf-emb.lmt
+++ b/tex/context/base/mkxl/lpdf-emb.lmt
@@ -2238,7 +2238,7 @@ function lpdf.flushfonts()
if not parent then
local fontdata = usedfonts[fontid]
local rawdata = fontdata.shared and fontdata.shared.rawdata
- local resources = fontdata.resources
+ local resources = fontdata.resources -- not always there, nullfont
local properties = fontdata.properties -- writingmode and type3
local parameters = fontdata.parameters -- used in type3
-- print("before",fontid,hash,parent,rawdata)
@@ -2265,7 +2265,7 @@ function lpdf.flushfonts()
parent = {
hash = hash,
fontdata = fontdata,
- filename = resources.filename or properties.filename or "unset",
+ filename = (resources and resources.filename) or properties.filename or "unset",
indices = { },
usedfonts = { [fontid] = true },
used = used,