Fix y offset in shaper

This commit is contained in:
Laurenz 2023-03-10 14:25:04 +01:00
parent 2c13ff9bfe
commit 902c2ea121
4 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ impl<'a> ShapedText<'a> {
for ((font, y_offset), group) in
self.glyphs.as_ref().group_by_key(|g| (g.font.clone(), g.y_offset))
{
let pos = Point::new(offset, top + shift + y_offset.at(self.size));
let pos = Point::new(offset, top + shift - y_offset.at(self.size));
let glyphs = group
.iter()
.map(|glyph| Glyph {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB