Add caching of swash rendering, significantly improves layout speed
This commit is contained in:
parent
0b5050e601
commit
a4959bbe7b
5 changed files with 243 additions and 92 deletions
|
|
@ -68,10 +68,7 @@ impl<'a> FontMatches<'a> {
|
|||
y_advance,
|
||||
x_offset,
|
||||
y_offset,
|
||||
#[cfg(feature = "ab_glyph")]
|
||||
font: &self.fonts[font_i].ab_glyph,
|
||||
#[cfg(feature = "swash")]
|
||||
font: &self.fonts[font_i].swash,
|
||||
font: &self.fonts[font_i],
|
||||
inner,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue