Paint inline size changes at their own size
This commit is contained in:
1 parent
00f95fdd09
commit
ae69eba64d
6 files changed
+158
-28
No files matched your search
@@ -550,6 +550,7 @@ impl Page {
|
||||
} else {
|
||||
flush_link(&mut link_run, &mut list.items);
|
||||
}
|
||||
let glyph_size = box_.size.unwrap_or(size);
|
||||
if let Some(math) = &box_.math {
|
||||
let math_font = Cmr10Metrics::default();
|
||||
Self::paint_math(
|
||||
@@ -557,7 +558,7 @@ impl Page {
|
||||
&math_font,
|
||||
x,
|
||||
baseline,
|
||||
size,
|
||||
glyph_size,
|
||||
&mut list.items,
|
||||
);
|
||||
}
|
||||
@@ -566,7 +567,7 @@ impl Page {
|
||||
font: box_.font.map_or(face, paragraph_face),
|
||||
x,
|
||||
y: baseline,
|
||||
size,
|
||||
size: glyph_size,
|
||||
text: character_text(character),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user