Apply job-local PDF font maps at execution and shipout
This commit is contained in:
1 parent
9527d3bbec
commit
28dfba5a5e
15 files changed
+583
-187
No files matched your search
@@ -124,6 +124,8 @@ pub enum Primitive {
|
||||
Pdflastypos,
|
||||
Pdfrestore,
|
||||
Pdfglyphtounicode,
|
||||
Pdfmapfile,
|
||||
Pdfmapline,
|
||||
Pdffontattr,
|
||||
Pdfnobuiltintounicode,
|
||||
Currentgrouplevel,
|
||||
@@ -1043,6 +1045,8 @@ impl Default for State {
|
||||
("pdflastypos", Pdflastypos),
|
||||
("pdfrestore", Pdfrestore),
|
||||
("pdfglyphtounicode", Pdfglyphtounicode),
|
||||
("pdfmapfile", Pdfmapfile),
|
||||
("pdfmapline", Pdfmapline),
|
||||
("pdffontattr", Pdffontattr),
|
||||
("pdfnobuiltintounicode", Pdfnobuiltintounicode),
|
||||
("dump", Dump),
|
||||
@@ -1479,6 +1483,21 @@ impl State {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(super) fn restore_legacy_font_map_commands(&mut self) {
|
||||
for (name, meaning) in [
|
||||
("pdfmapfile", Meaning::Primitive(Primitive::Pdfmapfile)),
|
||||
("pdfmapline", Meaning::Primitive(Primitive::Pdfmapline)),
|
||||
(
|
||||
"pdfsuppresswarningdupmap",
|
||||
Meaning::Parameter(Parameter::Pdfsuppresswarningdupmap),
|
||||
),
|
||||
] {
|
||||
self.commands
|
||||
.entry(CommandName::Control(name.into()))
|
||||
.or_insert(meaning);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_initex(&self) -> bool {
|
||||
self.initex
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user