Add line width field to LayoutLine

This commit is contained in:
Héctor Ramón Jiménez 2022-12-15 04:59:31 +01:00 committed by Jeremy Soller
parent 652543f9aa
commit 67950724c3
3 changed files with 9 additions and 0 deletions

View file

@ -594,6 +594,7 @@ impl ShapeLine {
mem::swap(&mut glyphs, &mut glyphs_swap);
layout_lines.push(
LayoutLine {
w: x,
glyphs: glyphs_swap,
},
);
@ -623,6 +624,7 @@ impl ShapeLine {
mem::swap(&mut glyphs, &mut glyphs_swap);
layout_lines.push(
LayoutLine {
w: x,
glyphs: glyphs_swap,
},
);
@ -650,6 +652,7 @@ impl ShapeLine {
mem::swap(&mut glyphs, &mut glyphs_swap);
layout_lines.push(
LayoutLine {
w: x,
glyphs: glyphs_swap,
},
);
@ -663,6 +666,7 @@ impl ShapeLine {
if push_line {
layout_lines.push(
LayoutLine {
w: x,
glyphs,
},
);