Apply job-local PDF font maps at execution and shipout

This commit is contained in:
gloamxun committed 2026-11-21 09:53:31 +08:00
1 parent 9527d3bbec
commit 28dfba5a5e
15 files changed
+583 -187

No files matched your search

@@ -250,6 +250,13 @@ pub trait SourceProvider {
) -> Result<Option<crate::resources::LoadedResource>, String> {
Ok(None)
}
/// Read an actual PDF font map. A host that can distinguish missing
/// files from other failures can return None for TeX's warning path.
fn optional_font_map(
&mut self, name: &str, from: &str,
) -> Result<Option<crate::resources::LoadedResource>, String> {
self.resource(crate::resources::ResourceKind::Map, name, from).map(Some)
}
/// Read exact bytes through the normal TeX input policy. Missing inputs
/// return None. Denied or unavailable host operations remain errors.
fn optional_tex_input(