1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13: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

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:698d1e9ecf490e04fb58ebf81cf9c633be29712abe172a6e6adfdc7fe442732d
size 4517
oid sha256:5021c1467b752ae50b0a74ba2afb43afe0d060cfb7a27e1b60b35ce7b03b0b3e
size 4890

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84e857521c20ea2458d9f9d724578e0495c06e75571c25104bf64a0be0be617d
size 8028
oid sha256:148e8388f3c32a7f86e4424eb652b6ba9d24a055d7837bbf1483c07bed922773
size 8632

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd2ff48cae729b3f957b1630bef23e94fb2176982c06ec3f123c1a0892fc536d
size 1959
oid sha256:4ed7ddac38fc938f9ff61844bc8d390ec19d0645c067891dea94f3ffca534d98
size 2070

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aac8c973f26d03c25155f0454185dc3ab27fffae1c63443e36f07c49fb0828bf
size 11183
oid sha256:d95eefcab668eeecb4c04f3d9d95b2e14f780754ca266eda00b071775d5341d2
size 11211

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8dd0d91d0866848e7965e88223ff3ddae2231728197fbcd3fb5b1a6b034e179d
size 21804
oid sha256:e38e385f06ad908f1dbf72a8d7997c010d4df69dd78142334396e79f07b7e4ff
size 22660

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11d0081c272986e6fbd00cde05c0931321bc9670d6a0fa3a650323cd7b56d795
size 28667
oid sha256:56daa1dee86a9d4098dadd45d10046d6064bd597ec3efd7bb83e14d72c135ec2
size 30432

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fc08e05c0ab0e167503324fb7c82777afd5866384ae8bbacb9b933f717feb56
size 33412
oid sha256:fbbcf97152a56077df7659541c336476d5c35048e6ae6d8f9e00b0aca33eb05a
size 35540

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf8177abaa5920e32ad4618f5296355377f475b0c0f9a95f75cbfbe468415fb8
size 19696
oid sha256:5943624ad18b49eb7c96d71cb7b6dbf57423b9ff10c40dbac15bccb9b3fd2203
size 20157

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57211d5ac8021223ed288b9fd6f651ed901ec91599ed67d54ac540f3a2037937
size 2205
oid sha256:71c4be9b34c1f4848c14d6a3e5f0805e3ad13e7ad4da52ec9f86968ed7d7b4d6
size 2449

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ae52d6761a4d0b95b38ca4ca34c10751eef1ab2a54a62786c55bee3a3522ba1
size 2050
oid sha256:75c32c3ec01c87a6783f755eee5b48540199f0f2a1099c67f30e2d6eee630217
size 2052

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93ce77fe1f570281d50eed4c8681f1fbb382bd5fc5de63e2d683e0c570c929ff
size 9065
oid sha256:8ac55fee85fef919cd967a056d93ccfd1fa7a075517d922821ff5d6b74d9706c
size 9400

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6664509aa41a9a235657d8af7f73bc3f1fcaf3df1aa20db1e06e02f0a2c8aeab
size 9005
oid sha256:9fa25eeb0635f8de5c7347d81d3643a9df597a962e891ff0c3851431a89235bf
size 9320

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ddac0bff10e6699c0ab2d9ea3679d5047d6099b7ba3540d1ebc144361f07d86
size 5517
oid sha256:138eba7dc9ca203342d8994cbfee053dd4fc9300d0d0fa66069c600ba444f180
size 5906

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0267c21c4cbe5601263d046a56596275272fbcf727653131f7780aa51ecf6253
size 6956
oid sha256:658040d648865dd6eedeebb49d287afb78cd41d0cf9c83b4a95249d40ff91828
size 7758

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46a498433ede5b71abccb5bbeed5788e4ba80949b96f3371b107bd45d5dee28a
size 7964
oid sha256:2e506366f91d6ab47b363a4fc857fff11eb899ad5ff79ab69488badb718749b8
size 8343

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db6f35e7dabe8f6d3766df022e5643f8461c3c2476959682622b793d59bf7c40
size 2833
oid sha256:e00193a8d1a8eb4df582be9e8e2e2edf7f59b00b312a86a2821216031e9629ce
size 2822

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db6f35e7dabe8f6d3766df022e5643f8461c3c2476959682622b793d59bf7c40
size 2833
oid sha256:e00193a8d1a8eb4df582be9e8e2e2edf7f59b00b312a86a2821216031e9629ce
size 2822

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d785e2073627f33a2e7a23a47e0e0b8ca9570f45d4de3d8b545b473c1a9e75b5
size 4940
oid sha256:42a410decfe48f13c50e2ef3da2a17267af3da3fef0285a1bf5198a13da7d21e
size 5062

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cba6fbd64df18b2a41635af59c1f50d1352b4de8ddefd7d5389a4f9e518b6c86
size 23543
oid sha256:3a0374e8c55c77a412979ce26cd58aead9345fb0b50a1601890c40869a339df9
size 24097

View File

@@ -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.");
});