1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00
Files
egui/crates/epaint_default_fonts
Emil Ernerfeldt 3f6979cef9 sort
2026-08-22 18:45:36 +02:00
..
2026-08-22 18:45:36 +02:00

epaint_default_fonts - fonts for epaint and egui

Latest version Documentation unsafe forbidden MIT Apache

Default fonts that are used in epaint and egui. Not intended for use as a standalone library.

Made for 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.

Albert Sans shipped without glyph instructions, so it was hinted with ttfautohint, which preserves its variable axis:

ttfautohint --windows-compatibility \
    "AlbertSans-VariableFont_wght.ttf" "AlbertSans-VariableFont_wght.ttf"