Preserve pdfTeX text positioning across direct color changes
This commit is contained in:
1 parent
0f6aa1f33d
commit
f88a16d101
15 files changed
+193
-44
No files matched your search
@@ -231,7 +231,7 @@ pub(super) struct BoxLayout {
|
||||
pub(super) enum GeometryItem {
|
||||
Output,
|
||||
Paint(crate::math_engine_tex::PositionedItem),
|
||||
PdfColor,
|
||||
PdfColor { x: i64, y: i64 },
|
||||
PdfGraphics { x: i64, y: i64 },
|
||||
PdfTextSpace { x: i64, y: i64, operation: crate::pdf_device::text_spaces::SpaceOperation },
|
||||
}
|
||||
@@ -846,7 +846,7 @@ impl NativeBox {
|
||||
let b = match node {
|
||||
BoxPaint::Box(b) => b,
|
||||
BoxPaint::PdfColor => {
|
||||
emit(GeometryItem::PdfColor);
|
||||
emit(GeometryItem::PdfColor { x, y });
|
||||
return;
|
||||
}
|
||||
BoxPaint::PdfGraphics => {
|
||||
|
||||
Reference in new issue
Block a user