Resolve named XeTeX fonts through captured resource catalogues

This commit is contained in:
gloamxun committed 2026-11-21 15:54:06 +08:00
1 parent a31de14eb2
commit 767c8ffced
10 files changed
+513 -12

No files matched your search

@@ -253,6 +253,15 @@ pub trait SourceProvider {
) -> Result<Option<crate::resources::LoadedResource>, String> {
Ok(None)
}
/// Look up a real named outline face in the host's resource namespace.
fn named_font(
&mut self,
_name: &str,
_style: crate::resources::FontStyle,
_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,