diff --git a/crates/epaint_default_fonts/README.md b/crates/epaint_default_fonts/README.md index 4a1006310..e3f5db7f1 100644 --- a/crates/epaint_default_fonts/README.md +++ b/crates/epaint_default_fonts/README.md @@ -9,3 +9,17 @@ Default fonts that are used in `epaint` and `egui`. Not intended for use as a standalone library. Made for [`egui`](https://github.com/emilk/egui/). + +## Font hinting + +`epaint` relies on embedded TrueType hinting instructions for crisp text on low-dpi +screens: skrifa only auto-hints a font that lacks an interpreter program, so a font with +no glyph instructions renders unhinted and blurry. + +`Radio Canada` shipped without glyph instructions, so it was hinted with +[`ttfautohint`](https://www.freetype.org/ttfautohint/), which preserves its variable axes: + +```sh +ttfautohint --windows-compatibility \ + "RadioCanada-VariableFont_wdth,wght.ttf" "RadioCanada-VariableFont_wdth,wght.ttf" +``` diff --git a/crates/epaint_default_fonts/fonts/RadioCanada-VariableFont_wdth,wght.ttf b/crates/epaint_default_fonts/fonts/RadioCanada-VariableFont_wdth,wght.ttf index 150e75e4b..794ffc342 100644 Binary files a/crates/epaint_default_fonts/fonts/RadioCanada-VariableFont_wdth,wght.ttf and b/crates/epaint_default_fonts/fonts/RadioCanada-VariableFont_wdth,wght.ttf differ