diff --git a/library/src/text/shaping.rs b/library/src/text/shaping.rs index feb9b24b5..d5e556860 100644 --- a/library/src/text/shaping.rs +++ b/library/src/text/shaping.rs @@ -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 { diff --git a/tests/ref/layout/columns.png b/tests/ref/layout/columns.png index 4bf76146c..51fd5b2c8 100644 Binary files a/tests/ref/layout/columns.png and b/tests/ref/layout/columns.png differ diff --git a/tests/ref/layout/par-bidi.png b/tests/ref/layout/par-bidi.png index 0406fbf18..8751d93ea 100644 Binary files a/tests/ref/layout/par-bidi.png and b/tests/ref/layout/par-bidi.png differ diff --git a/tests/ref/layout/par-indent.png b/tests/ref/layout/par-indent.png index 7aca22c13..269c00248 100644 Binary files a/tests/ref/layout/par-indent.png and b/tests/ref/layout/par-indent.png differ