Fix line width in LayoutLine for RTL
This commit is contained in:
parent
67950724c3
commit
be4dc2749c
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue