Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkpoint of Euler spiral based stroke expansion #496

Merged
merged 17 commits into from
Mar 13, 2024
3 changes: 3 additions & 0 deletions crates/encoding/src/glyph_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ impl GlyphCache {
Style::Fill(fill) => *fill,
Style::Stroke(_) => Fill::NonZero,
};
// Make sure each glyph gets encoded with a style.
// TODO: can probably optimize by setting style per run
encoding_cache.force_next_transform_and_style();
encoding_cache.encode_fill_style(fill);
let mut path = encoding_cache.encode_path(true);
let outline = outlines.get(GlyphId::new(key.glyph_id as u16))?;
Expand Down
Loading