1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -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:dda3ad81551d0001bb9d3614a266010e44c8c18700964d8734c3e825672d9383
size 334759
oid sha256:4582446dd435139b0c2d24b0e12b95dcb744259ef585599f715033099d6f6c14
size 335638

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9035687ecd3aae0d8639000f091592d69acec0e73e7ba17e04c9794c5321cb1e
size 92771
oid sha256:2a1a3dba83daa8b216ef0556fffe765b59bd2b9e2d9c4d433425bc14c0cfec32
size 95114

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:418f9bc7eb13dd32ce2bba8e4b8003b095dd00aa8c30f1640ea0f94f87a085eb
size 168430
oid sha256:5d7ee4dd378ec70790450403532209e8fb751eac29198d657761b584c2b1d349
size 176130

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d278d0d879e8cb44c4c2e65bdee4441616abcf3507adc37959ccf042991b31c
size 98780
oid sha256:02322d82061276af0d006b33d4ff80ed11b476ace7be11cf6c3f6137c1606785
size 101980

View File

@@ -257,53 +257,6 @@ fn special_char_name(chr: char) -> Option<&'static str> {
'\u{F1CA}' => Some("web-vine"),
'\u{F8FF}' => Some("os-apple"),
// Special private-use-area extensions found in `Ubuntu-Light.ttf`
'\u{F000}' => Some("uniF000"),
'\u{F001}' => Some("fi"),
'\u{F002}' => Some("fl"),
'\u{F506}' => Some("one seventh"),
'\u{F507}' => Some("two sevenths"),
'\u{F508}' => Some("three sevenths"),
'\u{F509}' => Some("four sevenths"),
'\u{F50A}' => Some("five sevenths"),
'\u{F50B}' => Some("six sevenths"),
'\u{F50C}' => Some("one ninth"),
'\u{F50D}' => Some("two ninths"),
'\u{F50E}' => Some("four ninths"),
'\u{F50F}' => Some("five ninths"),
'\u{F510}' => Some("seven ninths"),
'\u{F511}' => Some("eight ninths"),
'\u{F800}' => Some("zero.alt"),
'\u{F801}' => Some("one.alt"),
'\u{F802}' => Some("two.alt"),
'\u{F803}' => Some("three.alt"),
'\u{F804}' => Some("four.alt"),
'\u{F805}' => Some("five.alt"),
'\u{F806}' => Some("six.alt"),
'\u{F807}' => Some("seven.alt"),
'\u{F808}' => Some("eight.alt"),
'\u{F809}' => Some("nine.alt"),
'\u{F80A}' => Some("zero.sups"),
'\u{F80B}' => Some("one.sups"),
'\u{F80C}' => Some("two.sups"),
'\u{F80D}' => Some("three.sups"),
'\u{F80E}' => Some("four.sups"),
'\u{F80F}' => Some("five.sups"),
'\u{F810}' => Some("six.sups"),
'\u{F811}' => Some("seven.sups"),
'\u{F812}' => Some("eight.sups"),
'\u{F813}' => Some("nine.sups"),
'\u{F814}' => Some("zero.sinf"),
'\u{F815}' => Some("one.sinf"),
'\u{F816}' => Some("two.sinf"),
'\u{F817}' => Some("three.sinf"),
'\u{F818}' => Some("four.sinf"),
'\u{F819}' => Some("five.sinf"),
'\u{F81A}' => Some("six.sinf"),
'\u{F81B}' => Some("seven.sinf"),
'\u{F81C}' => Some("eight.sinf"),
'\u{F81D}' => Some("nine.sinf"),
_ => None,
}
}

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c777cd6b36219b92c88ebf5987f9239a5750d25be4a87a58841bcf6db259599
size 32422
oid sha256:c47ef97507fc77dec94adff91eeaaa3f4626a7d07de7a3f8fde73003852e0a05
size 33532

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:157996b151dd0f450abca6a9cbad4c8237e236300546521e50f95637d9a89c05
size 27206
oid sha256:2021667a6dbcaa6d314a48709520ec5c6b75fd3d157fc5c3fbd85d5f4e542265
size 29436

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d941c979def6f30fd227c144d20c7f138f9c06c3338d563ac075c5e17e9b795
size 26911
oid sha256:28b420afaf92989a1b9bfd60cddd1fc0bf609d38aa144bee6a66763af5b740b3
size 28228

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6df3c0a298d48a5f2e1b36207909e20ea545a72a97461a3ae0792d21e0554f93
size 76567
oid sha256:9cb0975b44f2b26a465653d2c8e9a94429cd64cdb21528f694c00667fb70fb39
size 77710

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1aa359d3d2767ad0d0ecb635152371b50b3d551f486fb45c6f7fa96969bc8f1
size 62291
oid sha256:846381a4cc5041c5de191eeb0e36ec80d53870aeeb123aa7e642c85eb0807756
size 66568

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad431823e85de056c95e6e97d1a9f5905880a1ecc34f24da5bc0b611e42fe99b
size 27260
oid sha256:d0860af3b4b2f3652c068a75beaec7753ae623a33c5c506bd8796cb8d9ef7d34
size 27717

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9aa1b0f9a1ff5167b7f66894e6d38112e73bd3b6a692b4b468fb6a75717d01bd
size 21009
oid sha256:721094905c38073d04071b484d821b2c9872568d91476e26b585e6b8549fbe93
size 22812

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04f66c848c6f24607d19b809f411a9287ad45067b18da40cf48a77ff65ae9d91
size 10875
oid sha256:ee36e6c205ad55972a78b5c5c7e26872dae20487c3d1406d37807022c1cd356a
size 11590

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73429ec71d1ae05518352f1a99304f55647dac362092c9cd5618f709b9ba0d11
size 99950
oid sha256:164c0f3d99c988c88f449b052b315e8c360dcb834216bf45f0b28c595b6c417f
size 104899

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79ee28a9c0d8ef80d53560584312a33569f668e0a49f6ad5d277ffef507f2818
size 25116
oid sha256:ed6ea81985a646b1095942ddd53528098f675db56e3a00e059332235638eb230
size 26665

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff02fa99b92059d7b4f8286b8a2fd2e27a7f8f005328da97f0b9786aac9bbb17
size 99316
oid sha256:629428d8d29fc2ce496ba6dc90f63d993a6d0abceeaad563a07e4e7348a8510d
size 107058

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:165821b21d980c98612a45cf54d9ca3578dec023ab0e2194d2166db087019cc3
size 18293
oid sha256:ecc53bfcb7f42391bfbb403e08b51459f3c3f13c48add363ccbb303876942461
size 19310

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bbd7fa4db7dd580968949b9d76c1521d5627cc1ee8cd19bb3dea752d3d47607b
size 114174
oid sha256:61c36f76137561b904d272fac61851555aa539ed206e89a4315fce0927b2e0c6
size 121642

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:03c4660ce72440f5ebf3db05b4bce1e8caf1899907723d30699d9d65d442f562
size 24540
oid sha256:58740daea256e405493f828ce87e86c27a06dccfff7be109c7afebfebb619175
size 25615

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e2f29678c41e45bedc916dbe845f05c343bfad5528a4143c32cac6c3dee41e7
size 50512
oid sha256:d5e71797c92d7fcec537425dd7587b994d4f00c780fb7107ac73ca8b817a9b0d
size 54227

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d70cd39499c8f9e0edf689b642ef7cc98115c751bf787305f92323f42aae3fd4
size 21814
oid sha256:507c72c32f2cee3c6f9e9356f12cd440f9c575ba95dce67dd996e950af21be94
size 23525

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7705ef738605c31bbf067363f5544ce57e698ab869feb8a88e4be4eabf4de7b6
size 47087
oid sha256:f6a6c80b98ff6a232d7df1d99e1dec065e10f2a367bf7e2fd188c853d939fc7b
size 50389

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:345ab9ac3586c3cb9d3b02d46c590a81c7bc31778a3b631874520e57b6694076
size 22994
oid sha256:cd81a24e3390a9c06812f9155fce438e902861f5558ba716bda2e671cc9c9ddd
size 24099

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a825dc9c62979fbb8d1ca3d441b4d9e7dbbd234b994901026f35fe7d591ff196
size 60217
oid sha256:85d4ca243f57e88eb1325d1d328949c6164454441de92c26c3e025f6d434659a
size 62908

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:58d56dce5f1e9766dbfdca4ea98fb71f7062b23a0ee4b08ce7f76056513aa9a5
size 33440
oid sha256:61e59647c39faa040084add2a8b66efd382029c086429483a6d0d012d2f28146
size 35304

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:353d92d99e9c2350267a43bff7bb9100d3109c82f8d54f9f7a9e3a312ea0c4e6
size 35378
oid sha256:ac2f99ca14a706305033d1eac8bfacf22e6526c80969c81d8ec6315376de517e
size 36905

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:218cce13bd96c97aca6a529ba49baaeda5a126cf657e6af1788646cb845725d0
size 17686
oid sha256:599eb70cb2b496709b6995d96b45139a25dc011aae4cb95d0a81e5b7e3580434
size 18312

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d20f4bf882ee16abde6268fe766ceb67dccdfc5d2a509a952cef1d7af72dc3c6
size 344141
oid sha256:a0a08a0c42ccfec292d34f421d5254ac484fab6f71fd1b92f5feaa3fb5c653aa
size 308204

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3edbe6debf700364949ef481ba1e8b2319db624ddc316570b6180636dcd88935
size 57262
oid sha256:b6a2219a70d407f63686232c8c41f95d0581d7d80cd34bbb0ecc9bfa340886a8
size 57802

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebe84ae10b084df7d8373bc4499c5d50a1446a6b707e8220c786a198341d76c8
size 19189
oid sha256:3cc25c5a071192d89c942ed01c61d1491f9cbf76e2ac4aed16a49cdf0c2e6581
size 19492

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:141271330d4cef517c4ec2c4c2c41306f8b5de386738381a0e4446fa89df7cdf
size 30450
oid sha256:43a69cab44360850fac79f76c594baf011f2ba483a71bbc0ed44294cad069239
size 29240

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be289c58296a7656c8550d25ff92b8cd0b03c5c9c527b9ca4a38acda8bbe3ac1
size 23807
oid sha256:2eec02cbb36fc9670157af6b9333092afa4099f77ebe42d92c0c7603758c9328
size 25095

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc28830c402d3aa861a220cfc600c3ce2d7b8ca77307691b3f844a34f27afd1f
size 151376
oid sha256:298c867043cd7e47ee0825854d8c0e09848e73411c7b8d15c91cb5eef99365bd
size 152835

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad81eeb593663cb26295e7fc51987b85a7084b32504e26364f54f9c2129cb790
size 118048
oid sha256:67f8d30ba8ddd98dfa1d94ec611a78563acd39e9d819429cf64be37214029590
size 125328

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c8aaf89b6d5dad6ae7788b58f642f5d80384777ca80dc3819f1aefc5867b148
size 26086
oid sha256:13bdca9c452943a78ca05a6ced04abfc05866810027324e20a1b9296c7a9c277
size 27307

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca08bb7cd0be0b5a9d10833e5c9b65e889f78a5a8056df69d6b0006c3a228227
size 66050
oid sha256:93fd5d490d2167cb0b9b3b81a857486531d12b3a8dad54e4362bc46d91f8d2b7
size 70075

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97452108d7809775756f1a229644076f5b4c75a6a6d8b8edc082c2448ae35e94
size 60701
oid sha256:b68f9183765155e0b1db36da3ec7bee1f90ff3ca13469706482074adbb171722
size 62719

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:121c6d5ba129439d2d747da8e505cfff04a023c28d9a0e3aca324d77de1ef418
size 79186
oid sha256:25489207f9aba222e1a0a472089bf0599a321fe248b1bf9f3ef338cdbd0d67e8
size 84632

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ad81306e153798d72724e37f23a4037bf986f98e0ecbe3e8d294d23a92ef77c
size 29975
oid sha256:2351d2e095a34df9ece5225487a864641a4aee2fdc68228dbb64630889fdf4a1
size 32270

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:125d6fe0cdc81a0c7973317e62c528c1beff7ceaedb9cb1fb91bc8d6674c8dc6
size 62830
oid sha256:7d96e8c63c79281c92bb6c475597e89a6f3045306239f9d613ad246a9570c56e
size 66405

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:789700adbf20ec5508abdfc95d843197715fbec9f35051799ea18e9927207b30
size 13650
oid sha256:ca00dc01560f330b77b5e219504608a2d0ad323657835fc8676c89cbca529a14
size 14426

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d27392f625445e82285c8eaeb532e11dcb02030f24c7a769356cb4c23d7c2067
size 41516
oid sha256:27c10afec5478970cecff03a0992900bd7939bcbb6954082a4e91f7b210d8f78
size 43502

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90c4ea93f234aded298ddeeb98e2d6a0566f07efcdaf5c990e8a47a6533db516
size 446483
oid sha256:21bf5e1677bf1c7649a6dba48e851065a5e9153eca615d323ef416858d162a15
size 468218

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d64cc7d014cf063689a4dd8a6cdd87eb944f9637890baf32f59a258342400bf
size 15400
oid sha256:5462741b8ffcd9a7f39a7a2befa17f412a27cbb43decfe37a21e698cf68eed92
size 16497

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e9f800546cc98bbd92f31072aceef10b5b8b9bbef0db4c8f4dbae652aefec61
size 35918
oid sha256:5be530c54b7d181b222f2a5407d0babd9e6e92d67bd6ded807eabffc80e8d1d9
size 38618

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e3f6e1cc6a069ac96ff9e039ce85462453ee943b4cb46080550bc1c0749ad658
size 16085
oid sha256:4a1d60769e972902b2a22cc1ac7b1f25518c27873ecfd81bd297477294e7c391
size 17269

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5901b5a8201b85b51118193eef300749a4569eedc62043cd4e03f76e73a12f51
size 39222
oid sha256:69a0fa23cd88d097ecd2a782987e13cbdac4029a14dbd3b24a5fc569d7cbdeb6
size 42499

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:19c9ae55906e0ad18a9507898884ec31ef785c498fb8d10267ee848bd3f17186
size 6705
oid sha256:7fcbcf0c2307472eec291bc8e4ac2212a0f65584c2313ce2a7385dc1f9a7bc41
size 7009

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f13116cb76e52620221b41c8dbd37b74a0da513402cbb2cb7e70c89027f5e31
size 10313
oid sha256:2893bc7c30623f563f8b019a6dd8c747130d35f932b796e6ee4c675f4c6507dd
size 11423

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6869b180f2d1dcfd9fcbb215ed3febfbe548f30035560272a4e11e465f20c592
size 16567
oid sha256:809312922d273e6e8b9e08f94f257da2ca67b9843b0dcee272c9382c64b8a494
size 17644

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:132f060b2e20b4cc0c55062367381f47856a5cc10310b903dbddc3790f475581
size 6942
oid sha256:851f6ea2a8e0b66ee80252d8f68fe341366383104004b45246c8fa31b148c8e2
size 7312

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5ec63c5e2f5bb5c0048ee67df5b821a30f89ba35dbedf72e7bc91e04a5f8359
size 11007
oid sha256:6b251b8e0b7489c90b6a26f5b532860b7ba0f767d310bb1b59a967d8a80c93a8
size 12327

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:491bb98b22cf56e50d3ed10a10649db15aaffb93d7e045dfecfa26e98f537c35
size 18070
oid sha256:d0a11eadef2111cfc94317aada1ceb5b70683f498545cf653a3a4565d2fdcdd0
size 19224

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:01493c64acb62a24d19c69579a8f8cb8e080a60747792bbbb98e1cccdfe9214f
size 47175
oid sha256:48318c5e9c66567403afed2f7c49eb8cb50d6cfd0c1bb0efb6209e9b88d4fa5d
size 49512

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b069ad508fd3a518df3a39e1740d1786c4af4c3c4a479db04c00f701980efa8
size 48277
oid sha256:23221888f3dae00e6d185f0b32682d75a41727c3c99365744023b29188dd4725
size 50566

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e92e72c651e0ad2c0fc38008d24d9ddf28a70e3b35b26898af78e74028e2c251
size 44357
oid sha256:add0c71a76757f8cd501658ede3983598f6a07f9f140f5aa19a08dd76fc49e36
size 46697

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a5f7bc46c7baf62b559458b3596e386d66bf2281b7c35e5fdb6c5c4a64569f2
size 44347
oid sha256:260146850953cb1c23ca2eefb0443141d1182583bf2e33c43e06306b4f29aa05
size 46443

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce6e44aeb60b6cc2179e14c467edc2d570ea1adbce08511650fc733e39f7757c
size 590679
oid sha256:9613faacf71956e547196911536f1b10fcf8c07106554e3524de74444b59a0a8
size 623365

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2edd6679d434df3407048472aaa95e410158f28e9a13c9bd88e3f8be95b08d9d
size 745771
oid sha256:5ec28b3f15f2031179ee584f78beca3438f22f4fe49b626a62dc04e2ae73bcb7
size 822402

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20cb796b59113853345c98e5238021a9c5c977c25689ee9201fdec1e4d98123d
size 973781
oid sha256:376b4b354571d14828630be781a1c18442e1a7a11dcf6a9bbdf58d540c5f3e87
size 1039204

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9658cc6b4dd2dd33356facc6b48cf69f9a86f976ac2dd4f16e362a2fd3f73827
size 1081864
oid sha256:18a95446db14d3060eadbec9601e147fdefd2bb5c67811c7e943c9c09f9637cc
size 1172356

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5d5941c8fa0456f8a92fce4888e7a2888945f5df7cfed867ef073c439c7ad9f
size 1131030
oid sha256:62ee659b51dc09017393befe61f2aaad4489f038f95c430c2d0746f6b0a18989
size 1262722

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78ef6dba3dcf5e26a9289ce226165224c712c22f9b5dfe699b599c7d2531133b
size 1363589
oid sha256:687ed694a05fecb7ae17e41016aa2ccf852193a4d72e01f8c4106e86f2fbb171
size 1475168

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3daf9b7cbfb48f6d083126e58c605cb19f462509acc03843f0bca5c645945e23
size 45044
oid sha256:336c6a0001b763ddca2814a79caf6b4afffc45e465306f1c6dda551f3dd9447e
size 46585

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de7db1296bdd127dfd827c6d1cc1a5a840391c3abb558be07faeb7e6612ed6e8
size 86830
oid sha256:6c38718424a61f2c73604a8dbfde78ee78fdda5bd4eb28dc83c868286bceab5b
size 88461

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ef3a17791ca4a3e0209eec5d191c00c66e08fc4dd07fb4845490288c5bfbdb6
size 118889
oid sha256:d6831189fba55f6a0305270270697675b3cb1c96d7381e71bb1dececa4f05d1c
size 120523

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:465a3aa235ea69bce6650cf6e100ffc719bba67baa0cb13d7015a0fc54d53d9a
size 51376
oid sha256:cc06eae3078ef4018c5f98d5b31c63dbfb81ba57d867d92cfcf492e955a65743
size 52858

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aac429243686d35096760eb1b7c6a2bcad1c1d00a3341a858a6c71aaff2cf128
size 54582
oid sha256:7fb7c93e663ae1e8ccb54bf3db8d5dac3fe2d8684ce905eb1c1b17f6dff4311a
size 56108

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8afb610d9e86b324db22849457eb23419c4f3c240e5ee951a13ce8901003bca8
size 55053
oid sha256:15172bfb3d4b58f06d5d47588b336e5bb4e417c1d6b79e3112f3f67532162388
size 56636

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75ff881add9f2968d19d8bb1d39239de5d99105027e91af209dfa5b45e644d2c
size 35943
oid sha256:1e50d31c10f269efdd31ed1c41ff4584e6a3e258aa36391be64fa5b314fc8079
size 37660

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1887d632d0994efec3dd7cecc41e3ad460c109baa1012d69e005cdc916e3cd24
size 35925
oid sha256:5b9dfcd94adf153e0fb47e57d9bc388e5b855d7c6171fbd68d7e70e629278ffb
size 37717

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7d8578b55ed8fdaf2062cb53d7320555e490289ff9efb30f39ebb697d2e252e
size 6529
oid sha256:3f9d2000dc18b07e3b10a04e55ca0435019fcbb9a54c674e93e2f8cdab68e768
size 7100

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e09ec77bd473ad6695557b78d4967ade09b12100f04bc66d0e29779dfb0d551
size 6495
oid sha256:179e36215bcf81fa5bbe74df6d4a0f782cb8980d21406d1760fe89be07056dbd
size 7029

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c0054dd1717833ae6f19726b58bffbf70bd4dc784b5f2774b194800a3adffed
size 64973
oid sha256:36a57aa787cdab22420b341630c27c4551f28ddf61d66dd55bc8fbc38ff1875e
size 68992

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9be7321d8184c3d06cfeb54410c1f839892c4f836767e9b1950e70306cde6c54
size 151090
oid sha256:f5f2aff128aebbaff84098716b7795b6f681e43ac5de67d62fc4eb67d0ec1bad
size 164020

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f07c25c053e9c4d5f7416cc00e101e13b7007b65c46ba13d0853d95ca43fddc4
size 59950
oid sha256:521982b06c8f11dd41181321b52344031bb45b91079dbe7158caf6f3e1261f59
size 63360

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6a9bc30b4d6ed100555ee553554848d20d93f25643e72eeef1826483ed307d9
size 145940
oid sha256:0a31bc3d49e4e6c456decbb575e6ffa0e557c76b985b761adfcb99a49f2ef6ba
size 158730

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

View File

@@ -362,7 +362,7 @@ impl core::fmt::Debug for ColorImage {
/// (which would require more atlas space, but would allow for more accurate rendering of colored text and emojis),
/// or do the color compensation in the shader, based on the active text color.
///
/// When experimenting, use <https://fonts.google.com/specimen/Ubuntu> to compare to a ground truth.
/// When experimenting, use <https://fonts.google.com/specimen/Albert+Sans> to compare to a ground truth.
///
/// See <https://hikogui.org/2022/10/24/the-trouble-with-anti-aliasing.html> for related analysis.
#[derive(Clone, Copy, Debug, Default, PartialEq)]

View File

@@ -452,10 +452,7 @@ impl FontFace {
matches!(
chr,
// Strip out a religious symbol with secondary nefarious interpretation:
'\u{534d}' | '\u{5350}' |
// Ignore ubuntu-specific stuff in `Ubuntu-Light.ttf`:
'\u{E0FF}' | '\u{EFFD}' | '\u{F0FF}' | '\u{F200}'
'\u{534d}' | '\u{5350}'
)
}

View File

@@ -11,7 +11,7 @@ use crate::{
use emath::{NumExt as _, OrderedFloat, Rangef};
#[cfg(feature = "default_fonts")]
use epaint_default_fonts::{EMOJI_ICON, HACK_REGULAR, NOTO_EMOJI_REGULAR, UBUNTU_LIGHT};
use epaint_default_fonts::{ALBERT_SANS, EMOJI_ICON, HACK_REGULAR, NOTO_EMOJI_REGULAR};
// ----------------------------------------------------------------------------
@@ -411,7 +411,7 @@ fn blob_from_font_data(data: &FontData) -> Blob {
/// fonts.font_data.insert("my_font".to_owned(),
/// std::sync::Arc::new(
/// // .ttf and .otf supported
/// FontData::from_static(include_bytes!("../../../epaint_default_fonts/fonts/Ubuntu-Light.ttf"))
/// FontData::from_static(include_bytes!("../../../epaint_default_fonts/fonts/AlbertSans-VariableFont_wght.ttf"))
/// )
/// );
///
@@ -518,8 +518,13 @@ impl Default for FontDefinitions {
);
font_data.insert(
"Ubuntu-Light".to_owned(),
Arc::new(FontData::from_static(UBUNTU_LIGHT)),
"Albert Sans".to_owned(),
// Albert Sans is a variable font; a slightly-lighter-than-regular weight
// looks best for UI text.
Arc::new(FontData::from_static(ALBERT_SANS).tweak(FontTweak {
coords: VariationCoords::new([(b"wght", 350.0)]),
..Default::default()
})),
);
// Bigger emojis, and more. <http://jslegers.github.io/emoji-icon-font/>:
@@ -535,7 +540,7 @@ impl Default for FontDefinitions {
FontFamily::Monospace,
vec![
"Hack".to_owned(),
"Ubuntu-Light".to_owned(), // fallback for √ etc
"Albert Sans".to_owned(), // fallback for √ etc
"NotoEmoji-Regular".to_owned(),
"emoji-icon-font".to_owned(),
],
@@ -543,7 +548,7 @@ impl Default for FontDefinitions {
families.insert(
FontFamily::Proportional,
vec![
"Ubuntu-Light".to_owned(),
"Albert Sans".to_owned(),
"NotoEmoji-Regular".to_owned(),
"emoji-icon-font".to_owned(),
],
@@ -573,7 +578,7 @@ impl FontDefinitions {
#[cfg(feature = "default_fonts")]
pub fn builtin_font_names() -> &'static [&'static str] {
&[
"Ubuntu-Light",
"Albert Sans",
"NotoEmoji-Regular",
"emoji-icon-font",
"Hack",

Some files were not shown because too many files have changed in this diff Show More