Embed hinted Type 1C subsets for XeTeX PDF output

This commit is contained in:
gloamxun committed 2026-11-28 11:07:18 +08:00
1 parent 4ae4275cf3
commit 01c6f1d4bd
9 files changed
+629 -26

No files matched your search

+7 -1
View File
@@ -1201,7 +1201,13 @@ impl CompileJob {
let xdv_glyph_names = if request.target == Target::Shipouts
&& request.input_profile == InputProfile::XeTeX
&& pages.iter().any(|page| {
page.items.iter().any(|item| matches!(item, DisplayItem::OpenTypeGlyph { .. }))
page.items.iter().any(|item| match item {
DisplayItem::OpenTypeGlyph { .. } => true,
DisplayItem::NativeGlyph { paint: Some(paint), .. } => matches!(
paint.program, texrra_tex_core::native_font::NativeFontProgram::Type1(_)
),
_ => false,
})
})
{
Some(XdvGlyphNames::load(files, &request.input.to_string_lossy())