Add documentation and improve API

This commit is contained in:
Jeremy Soller 2022-10-18 17:13:48 -06:00
parent de572b1645
commit a242d817e9
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
10 changed files with 76 additions and 71 deletions

View file

@ -1,4 +1,5 @@
use super::{CacheKey, Font, FontLineIndex};
use crate::TextLineIndex;
use super::{CacheKey, Font};
pub struct FontLayoutGlyph<'a> {
pub start: usize,
@ -10,7 +11,7 @@ pub struct FontLayoutGlyph<'a> {
}
pub struct FontLayoutLine<'a> {
pub line_i: FontLineIndex,
pub line_i: TextLineIndex,
pub glyphs: Vec<FontLayoutGlyph<'a>>,
}