Render imported PDF TrueType device fonts from exact SFNT faces

This commit is contained in:
gloamxun committed 2026-11-28 04:21:30 +08:00
1 parent b640b26eff
commit 84d6f3ae51
14 files changed
+504 -76

No files matched your search

@@ -277,6 +277,14 @@ pub trait SourceProvider {
) -> Result<Option<crate::resources::NamedFont>, String> {
Ok(None)
}
/// Resolve the exact PostScript name of a PDF TrueType device font.
fn pdf_truetype(
&mut self,
_name: &str,
_from: &str,
) -> 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,