Reuse decoded Type 1 fonts across native revisions

This commit is contained in:
gloamxun committed 2026-11-20 16:55:48 +08:00
1 parent 6e573dc1ce
commit 361e8d070f
4 files changed
+170 -31

No files matched your search

+2 -1
View File
@@ -569,6 +569,7 @@ pub struct NativeCompiler {
jobs: Arc<Mutex<()>>,
draft_sync: Arc<DraftSyncQueue>,
format_cache: Arc<FormatCache>,
font_cache: Arc<texrra_tex_core::native_font::NativeFontCache>,
line_break_cache: Arc<texrra_tex_core::execution::LineBreakCache>,
entry_checkpoints: Option<Arc<CheckpointCache>>,
}
@@ -1083,7 +1084,7 @@ impl CompileJob {
files.write_layout_manifest(path, e, &pages, &source_map)?;
}
evidence.phase = AttemptPhase::Fonts;
let fonts = texrra_tex_core::native_font::resolve_native_fonts(&mut pages, files);
let fonts = self.compiler.font_cache.resolve(&mut pages, files);
let reported = report(files, &request);
if let Err(error) = fonts {
if let Err(report) = reported {