Fix y offset in shaper
This commit is contained in:
parent
2c13ff9bfe
commit
902c2ea121
@ -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 |
Loading…
Reference in New Issue
Block a user