Separate format font metrics from live expansion links
This commit is contained in:
1 parent
9b80a782cf
commit
b008c0693a
11 files changed
+389
-84
No files matched your search
@@ -1465,9 +1465,20 @@ impl State {
|
||||
}
|
||||
self.pdf_info.clear();
|
||||
self.pdf_pages_attributes.clear();
|
||||
self.fonts.pdf_settings.clear();
|
||||
self.fonts.reset_format_font_state();
|
||||
self
|
||||
}
|
||||
pub(super) fn restore_legacy_format_fonts(&mut self) -> Result<(), String> {
|
||||
let replacements = self.fonts.restore_legacy_synthesized_fonts()?;
|
||||
if !replacements.is_empty() {
|
||||
for b in self.boxes.values_mut() {
|
||||
b.rebind_legacy_expansion_fonts(&replacements);
|
||||
}
|
||||
}
|
||||
self.fonts.reset_format_font_state();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn is_initex(&self) -> bool {
|
||||
self.initex
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user