Retain XeTeX image lookup paths in native formats

This commit is contained in:
gloamxun committed 2026-11-28 01:06:12 +08:00
1 parent 6a118d3b60
commit c2e1e64a60
10 files changed
+208 -54

No files matched your search

@@ -249,6 +249,17 @@ pub trait SourceProvider {
) -> Result<crate::resources::LoadedResource, String> {
Err("host binary resource lookup unavailable".into())
}
/// Retain the lookup spelling when a format defers reopening the resource.
fn resource_with_lookup_path(
&mut self,
kind: crate::resources::ResourceKind,
name: &str,
from: &str,
) -> Result<(crate::resources::LoadedResource, std::path::PathBuf), String> {
let resource = self.resource(kind, name, from)?;
let path = resource.version.path.clone();
Ok((resource, path))
}
/// A missing VF permits the physical font path. Lookup and read errors do not.
fn virtual_font(
&mut self,