diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-05-08 18:02:07 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-05-08 18:02:07 +0200 |
commit | bb8ae12f4f94189fd1540b201e2aea78f485de97 (patch) | |
tree | 276278bd85ffa1571950669656cbdffe1b8fd68a /tex/context/base/mkxl/lpdf-emb.lmt | |
parent | 51156ffe8b1434d9c1896f12a59554cbe877ee3d (diff) | |
download | context-bb8ae12f4f94189fd1540b201e2aea78f485de97.tar.gz |
2023-05-08 17:39:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-emb.lmt')
-rw-r--r-- | tex/context/base/mkxl/lpdf-emb.lmt | 4 |
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, |