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

@@ -174,7 +174,9 @@ impl NativeShipout {
let y = self.device.vertical_origin + self.box_node.height + p.y;
if let MathItem::OpenType(run) = p.item {
run.paint(x, y, |value| value, |item, source| {
page.sources.insert(page.items.len(), source);
if !matches!(item, DisplayItem::OpenTypeActualText(_)) {
page.sources.insert(page.items.len(), source);
}
page.items.push(item);
});
return;