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

@ -32,6 +32,8 @@ pub struct LayoutGlyph {
/// A line of laid out glyphs
pub struct LayoutLine {
/// Width of the line
pub w: f32,
/// Glyphs in line
pub glyphs: Vec<LayoutGlyph>,
}