-
Notifications
You must be signed in to change notification settings - Fork 2
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
Selecting fonts and fallbacks #53
Comments
Use fontdb, rust-fontconfig will be in alpha stage for a long time |
Have a look at https://github.com/alibaba/font-toolkit, we plan to implement a better font fallback. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since #46 we use fontdb by @RazrFalcon plus some hacky lists of preferred family names to select fonts. This vaguely works but has several issues:
ttf_parser::Face::glyph_index
), for each missing glyph. This now has caching but is still slow with multiple fallback fonts.fontdue
).Some significant changes are needed, at least to the way we choose fallback fonts and likely also to the way fonts are selected. This could either be via closer integration with system libraries or via closer adherence to CSS font selection (using the effective character map, and ... CSS recommends using the "system font fallback" mechanism as the next step).
Also relevant: rust-fontconfig by @fschutt.
The text was updated successfully, but these errors were encountered: