diff --git a/src/shape.rs b/src/shape.rs index d0a928b..aeb4577 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -594,7 +594,7 @@ impl ShapeLine { mem::swap(&mut glyphs, &mut glyphs_swap); layout_lines.push( LayoutLine { - w: x, + w: if self.rtl { start_x - x } else { x }, glyphs: glyphs_swap, }, ); @@ -624,7 +624,7 @@ impl ShapeLine { mem::swap(&mut glyphs, &mut glyphs_swap); layout_lines.push( LayoutLine { - w: x, + w: if self.rtl { start_x - x } else { x }, glyphs: glyphs_swap, }, ); @@ -652,7 +652,7 @@ impl ShapeLine { mem::swap(&mut glyphs, &mut glyphs_swap); layout_lines.push( LayoutLine { - w: x, + w: if self.rtl { start_x - x } else { x }, glyphs: glyphs_swap, }, ); @@ -666,7 +666,7 @@ impl ShapeLine { if push_line { layout_lines.push( LayoutLine { - w: x, + w: if self.rtl { start_x - x } else { x }, glyphs, }, );