Resolve mapped Type 1 fonts for included pdfTeX pages
This commit is contained in:
1 parent
02d4c3116a
commit
0f6aa1f33d
13 files changed
+504
-19
No files matched your search
@@ -210,6 +210,15 @@ impl Executor {
|
||||
span,
|
||||
})
|
||||
}
|
||||
pub(super) fn pdf_copy_imported_fonts(&mut self) -> bool {
|
||||
if let Some(copy) = self.state.pdf_copy_imported_fonts {
|
||||
return copy;
|
||||
}
|
||||
let copy = self.read_parameter(Parameter::Pdfinclusioncopyfonts).width() > 0;
|
||||
self.state.pdf_copy_imported_fonts = Some(copy);
|
||||
copy
|
||||
}
|
||||
|
||||
pub(super) fn pdf_page_data(
|
||||
&mut self,
|
||||
files: &mut impl SourceProvider,
|
||||
@@ -227,6 +236,9 @@ impl Executor {
|
||||
if mode <= 0 {
|
||||
return Ok(None);
|
||||
}
|
||||
if self.state.input_profile() == InputProfile::TeX8Bit {
|
||||
self.pdf_copy_imported_fonts();
|
||||
}
|
||||
let major = self.read_parameter(Parameter::Pdfmajorversion).width();
|
||||
let minor = self.read_parameter(Parameter::Pdfminorversion).width();
|
||||
if major < 1 || !(0..=9).contains(&minor) {
|
||||
|
||||
Reference in new issue
Block a user