Move line height calculation to LayoutLine
This commit is contained in:
parent
31d3ceca51
commit
21e88ebc45
3 changed files with 17 additions and 11 deletions
|
|
@ -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>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue