Apply XeLaTeX CMaps to document text and embedded fonts

This commit is contained in:
gloamxun committed 2026-11-28 21:40:17 +08:00
1 parent af6466cd98
commit 7d460e0fa1
20 files changed
+747 -65

No files matched your search

+3 -1
View File
@@ -2026,7 +2026,9 @@ fn write_native_font(
NativeFontProgram::Pk(_) => unreachable!(),
};
let unicode = objects.len() + 1;
let cmap = if !has_glyph_unicode {
let cmap = if let Some(texts) = &paint.xdv_unicode {
Some(type1_tounicode_texts(&texts.texts))
} else if !has_glyph_unicode {
None
} else if xdv_type1 {
let names = options.and_then(|options| options.xdv_glyph_names);