Implement XeTeX native word ActualText across shaping and shipout

This commit is contained in:
gloamxun committed 2026-11-25 23:38:47 +08:00
1 parent 97319d751b
commit 7e5428ec35
15 files changed
+143 -24

No files matched your search

+4
View File
@@ -851,6 +851,10 @@ fn page_content(
let px = |x| pt(x - h);
let py = |y| pt(height - y - v);
match item {
DisplayItem::OpenTypeActualText(text) => match text {
Some(text) => opentype_fonts::begin_actual_text(&mut content, text, true),
None => content.push_str("EMC\n"),
},
DisplayItem::OpenTypeGlyph { x, y, size, font, glyph, text, .. } => {
opentype[&font.id].paint(
&mut opentype_text, &mut content, font.id, *glyph, text,