Paint bitmap math accents before their base glyph
This commit is contained in:
1 parent
e1060924bf
commit
d55f4e4059
2 files changed
+35
-6
No files matched your search
@@ -4089,17 +4089,19 @@ fn layout_math_accent_paint(
|
||||
gap: f64::from(gap),
|
||||
extra_space: f64::from(extra_space),
|
||||
});
|
||||
let mut items = vec![MathItem::Child {
|
||||
// Accent bitmaps have an opaque white background; draw the accent first
|
||||
// so the nucleus paints over it instead of being clipped by it.
|
||||
let mut items = vec![paint.item(MathPosition {
|
||||
x: Mm::from(layout.accent_position.x),
|
||||
y: Mm::from(layout.accent_position.y),
|
||||
})];
|
||||
items.push(MathItem::Child {
|
||||
layout: Rc::new(body),
|
||||
position: MathPosition {
|
||||
x: Mm::from(layout.body_position.x),
|
||||
y: Mm::from(layout.body_position.y),
|
||||
},
|
||||
}];
|
||||
items.push(paint.item(MathPosition {
|
||||
x: Mm::from(layout.accent_position.x),
|
||||
y: Mm::from(layout.accent_position.y),
|
||||
}));
|
||||
});
|
||||
MathBox {
|
||||
size: MathSize {
|
||||
width: Mm::from(layout.width),
|
||||
|
||||
Reference in new issue
Block a user