mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -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:
@@ -152,8 +152,9 @@ fn test_scroll_down() {
|
||||
let mut harness = test_scroll_harness();
|
||||
|
||||
let button = harness.get_by_label("Hidden Button");
|
||||
button.scroll_down();
|
||||
button.scroll_down();
|
||||
for _ in 0..10 {
|
||||
button.scroll_down();
|
||||
}
|
||||
harness.run();
|
||||
|
||||
harness.get_by_label("Hidden Button").click();
|
||||
@@ -174,7 +175,9 @@ fn test_masking() {
|
||||
.as_millis();
|
||||
|
||||
ui.label("I should not be masked.");
|
||||
ui.label(format!("Timestamp: {timestamp}"));
|
||||
// Render the timestamp with a monospace font so that the layout width
|
||||
// does not depend on which digits the current time happens to contain.
|
||||
ui.monospace(format!("Timestamp: {timestamp}"));
|
||||
ui.label("I should also not be masked.");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user