Resolve imported PDF CFF device fonts from real OpenType faces
This commit is contained in:
1 parent
84d6f3ae51
commit
82e54894c4
14 files changed
+326
-38
No files matched your search
@@ -1685,6 +1685,15 @@ impl SourceProvider for Files {
|
||||
}
|
||||
Ok(selected)
|
||||
}
|
||||
fn pdf_cff(
|
||||
&mut self, name: &str, from: &str, cid_keyed: bool,
|
||||
) -> Result<Option<texrra_tex_core::resources::NamedFont>, String> {
|
||||
let selected = self.world.read_pdf_cff(name, Path::new(from), cid_keyed)?;
|
||||
if let Some(font) = &selected {
|
||||
self.observe_resource(ResourceKind::OpenType, &font.resource);
|
||||
}
|
||||
Ok(selected)
|
||||
}
|
||||
fn optional_font_file(&mut self, kind: ResourceKind, name: &str, from: &str) -> Result<Option<LoadedResource>, String> {
|
||||
let resource = self.world.read_optional(kind, name, Path::new(from))?;
|
||||
if let Some(resource) = &resource {
|
||||
|
||||
Reference in new issue
Block a user