Embed a single monospace face to shrink PDFs

This commit is contained in:
gloamxun committed 2026-10-19 21:42:17 +08:00
1 parent 2076da8f21
commit ea14b3edbf
5 files changed
+41 -5

No files matched your search

+2 -2
View File
@@ -2199,7 +2199,7 @@ impl RenderResources {
let mono_family = inputs
.monospace_fonts
.clone()
.map(|family| document.add_font_family(family));
.map(|family| document.add_font_family_single(family));
let cjk_family = inputs
.cjk_family()
.map(|family| document.add_font_family(family));
@@ -2289,7 +2289,7 @@ impl PreviewResources {
let mono_family = inputs
.monospace_fonts
.clone()
.map(|family| font_cache.add_font_family(family));
.map(|family| font_cache.add_font_family_single(family));
let cjk_family = inputs
.cjk_family()
.map(|family| font_cache.add_font_family(family));