Move line height calculation to LayoutLine

This commit is contained in:
Jeremy Soller 2024-06-07 10:52:26 -06:00
parent 31d3ceca51
commit 21e88ebc45
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 17 additions and 11 deletions

View file

@ -95,6 +95,8 @@ pub struct LayoutLine {
pub max_ascent: f32,
/// Maximum descent of the glyphs in line
pub max_descent: f32,
/// Maximum line height of any spans in line
pub line_height_opt: Option<f32>,
/// Glyphs in line
pub glyphs: Vec<LayoutGlyph>,
}