Preserve pdfTeX text positioning across direct color changes

This commit is contained in:
gloamxun committed 2026-11-26 15:19:17 +08:00
1 parent 0f6aa1f33d
commit f88a16d101
15 files changed
+193 -44

No files matched your search

+1 -1
View File
@@ -362,7 +362,7 @@ impl SourceMap {
// Color controls change graphics state and occupy no geometry.
if matches!(
item,
DisplayItem::PdfColor(_) | DisplayItem::PdfImageObject(_) | DisplayItem::PdfTextSpace { .. }
DisplayItem::PdfColor { .. } | DisplayItem::PdfImageObject(_) | DisplayItem::PdfTextSpace { .. }
| DisplayItem::OpenTypeColor(_)
) {
continue;