Improve performance of layout lines
This commit is contained in:
parent
682407d15a
commit
3227efef89
5 changed files with 85 additions and 32 deletions
|
|
@ -1,7 +1,8 @@
|
|||
use core::marker::PhantomData;
|
||||
|
||||
use super::FontLineIndex;
|
||||
|
||||
pub struct FontLayoutGlyph<'a, T: 'a> {
|
||||
pub line_i: usize,
|
||||
pub start: usize,
|
||||
pub end: usize,
|
||||
pub x: f32,
|
||||
|
|
@ -14,6 +15,7 @@ pub struct FontLayoutGlyph<'a, T: 'a> {
|
|||
}
|
||||
|
||||
pub struct FontLayoutLine<'a> {
|
||||
pub line_i: FontLineIndex,
|
||||
pub glyphs: Vec<FontLayoutGlyph<'a, ()>>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue