More implementation of new buffer abstraction

This commit is contained in:
Jeremy Soller 2022-10-20 19:34:56 -06:00
parent 2bbacf5636
commit 441112b5e2
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
7 changed files with 244 additions and 397 deletions

View file

@ -1,4 +1,3 @@
use crate::TextLineIndex;
use super::{CacheKey, Font, FontLayoutGlyph, FontLayoutLine};
pub struct FontShapeGlyph<'a> {
@ -41,7 +40,6 @@ pub struct FontShapeSpan<'a> {
}
pub struct FontShapeLine<'a> {
pub line_i: TextLineIndex,
pub rtl: bool,
pub spans: Vec<FontShapeSpan<'a>>,
}
@ -165,7 +163,6 @@ impl<'a> FontShapeLine<'a> {
layout_lines.insert(
layout_i,
FontLayoutLine {
line_i: self.line_i,
rtl: self.rtl,
glyphs: glyphs_swap,
},
@ -200,7 +197,6 @@ impl<'a> FontShapeLine<'a> {
layout_lines.insert(
layout_i,
FontLayoutLine {
line_i: self.line_i,
rtl: self.rtl,
glyphs: glyphs_swap,
},
@ -217,7 +213,6 @@ impl<'a> FontShapeLine<'a> {
layout_lines.insert(
layout_i,
FontLayoutLine {
line_i: self.line_i,
rtl: self.rtl,
glyphs,
},