Align glyphs in a LayoutRun to baseline
This commit is contained in:
parent
3640b5e1ef
commit
c2bef6a345
3 changed files with 37 additions and 11 deletions
|
|
@ -56,6 +56,10 @@ pub struct LayoutGlyph {
|
|||
pub struct LayoutLine {
|
||||
/// Width of the line
|
||||
pub w: f32,
|
||||
/// Maximum ascent of the glyphs in line
|
||||
pub max_ascent: f32,
|
||||
/// Maximum descent of the glyphs in line
|
||||
pub max_descent: f32,
|
||||
/// Glyphs in line
|
||||
pub glyphs: Vec<LayoutGlyph>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue