Resolve imported PDF CFF device fonts from real OpenType faces

This commit is contained in:
gloamxun committed 2026-11-28 04:35:52 +08:00
1 parent 84d6f3ae51
commit 82e54894c4
14 files changed
+326 -38

No files matched your search

@@ -285,6 +285,15 @@ pub trait SourceProvider {
) -> Result<Option<crate::resources::NamedFont>, String> {
Ok(None)
}
/// Resolve an exact PDF device name using the requested CFF charset kind.
fn pdf_cff(
&mut self,
_name: &str,
_from: &str,
_cid_keyed: bool,
) -> Result<Option<crate::resources::NamedFont>, String> {
Ok(None)
}
/// An exact lookup that can report a missing font file before trying another format.
fn optional_font_file(
&mut self, kind: crate::resources::ResourceKind, name: &str, from: &str,