-
Notifications
You must be signed in to change notification settings - Fork 144
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
Replace fello with skrifa for font rendering #423
Conversation
This replaces our bespoke fello lib with skrifa from crates.io which brings us one step closer to being able to release. Causes a slight regression since we no longer support hinting but that will be fixed when support lands upstream (soon!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not got the deepest knowledge within vello + skrifa, but changes look good to me, and it works on my machine, thanks.
What is hinting? |
I think wikipedia does a good job explaining that. |
@@ -49,18 +51,16 @@ impl GlyphCache { | |||
}; | |||
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))?; | |||
let draw_settings = skrifa::outline::DrawSettings::unhinted(size, coords); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let draw_settings = skrifa::outline::DrawSettings::unhinted(size, coords); | |
// FIXME: Re-add hinting when skrifa supports it | |
let draw_settings = skrifa::outline::DrawSettings::unhinted(size, coords); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, a little reminder won't hurt. Also added a link to the tracking issue.
The wikipedia article does a good job explaining the concept. Our fello crate does contain an implementation of hinting but it's not production quality. My current task at day job is making it so and landing it in skrifa so this should be done soon. |
This replaces our bespoke fello lib with skrifa from crates.io which brings us one step closer to being able to release.
Causes a slight regression since we no longer support hinting but that will be fixed when support lands upstream (soon!)