1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 12:50:04 -04:00

Switch the default egui font to Albert Sans

Follows the same approach as #8261: replaces Ubuntu-Light with a
variable font hinted via ttfautohint, updates fallback references,
loosens a couple of tests that hard-coded font-specific pixel values,
and regenerates all visual snapshots.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Emil Ernerfeldt
2026-08-22 11:56:29 +02:00
parent 97603fc082
commit 08186f15d3
207 changed files with 525 additions and 551 deletions

View File

@@ -26,14 +26,15 @@ pub const HACK_REGULAR: &[u8] = include_bytes!("../fonts/Hack-Regular.ttf");
/// more information.
pub const NOTO_EMOJI_REGULAR: &[u8] = include_bytes!("../fonts/NotoEmoji-Regular.ttf");
/// A typeface designed for use by Ubuntu.
/// A contemporary sans serif typeface designed for user interfaces.
///
/// The Ubuntu typeface has been specially created to complement the Ubuntu tone
/// of voice. It has a contemporary style and contains characteristics unique to
/// the Ubuntu brand that convey a precise, reliable and free attitude.
/// Albert Sans is a grotesque-style typeface with a geometric skeleton and a
/// low-contrast, high-legibility design suited to UI text at small sizes. It
/// is a variable font with a weight axis.
///
/// See [Ubuntu design](https://design.ubuntu.com/font) for more information.
pub const UBUNTU_LIGHT: &[u8] = include_bytes!("../fonts/Ubuntu-Light.ttf");
/// See [the Albert Sans repository](https://github.com/usted/Albert-Sans) for
/// more information.
pub const ALBERT_SANS: &[u8] = include_bytes!("../fonts/AlbertSans-VariableFont_wght.ttf");
/// An experimental typeface that uses standardized
/// [UNICODE planes](http://en.wikipedia.org/wiki/Plane_(Unicode))