Fix off by one in rtl layout

This commit is contained in:
Jeremy Soller 2022-10-06 11:07:47 -06:00
parent fd8ef6ea8d
commit 0b0ed1df68
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 2 additions and 2 deletions

View file

@ -66,6 +66,7 @@ impl<'a> FontShapeLine<'a> {
line_i: self.line_i,
glyphs: glyphs_swap
});
layout_i += 1;
x = line_width as f32 - x_advance;
y = 0.0;