mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
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
|
for ((font, y_offset), group) in
|
||||||
self.glyphs.as_ref().group_by_key(|g| (g.font.clone(), g.y_offset))
|
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
|
let glyphs = group
|
||||||
.iter()
|
.iter()
|
||||||
.map(|glyph| Glyph {
|
.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…
x
Reference in New Issue
Block a user