Support scoped XeTeX OpenType colors in PDF and SVG

This commit is contained in:
gloamxun committed 2026-11-26 11:27:13 +08:00
1 parent 5a4271364a
commit a0922d0105
10 files changed
+183 -16

No files matched your search

@@ -174,7 +174,7 @@ 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| {
if !matches!(item, DisplayItem::OpenTypeActualText(_)) {
if !matches!(item, DisplayItem::OpenTypeActualText(_) | DisplayItem::OpenTypeColor(_)) {
page.sources.insert(page.items.len(), source);
}
page.items.push(item);