Allocate and share native PDF font objects

This commit is contained in:
gloamxun committed 2026-11-27 16:15:18 +08:00
1 parent d12c4b034b
commit 51451813dc
12 files changed
+345 -20

No files matched your search

@@ -350,6 +350,7 @@ pub enum Primitive {
Pdfuniformdeviate,
Pdfnormaldeviate,
Pdfpageref,
Pdffontobjnum,
Partokenname,
Pdfliteral,
Leftmarginkern,
@@ -519,6 +520,7 @@ impl Primitive {
| Pdfuniformdeviate
| Pdfnormaldeviate
| Pdfpageref
| Pdffontobjnum
| Leftmarginkern
| Rightmarginkern
| Pdfcolorstackinit
@@ -910,6 +912,7 @@ const PDFTEX_ONLY_PRIMITIVES: &[(&str, Primitive)] = {
("pdfuniformdeviate", Pdfuniformdeviate),
("pdfnormaldeviate", Pdfnormaldeviate),
("pdfpageref", Pdfpageref),
("pdffontobjnum", Pdffontobjnum),
("pdfliteral", Pdfliteral),
("pdfcolorstack", Pdfcolorstack),
("pdfsave", Pdfsave),