1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

demo: in font book, ask font what characters are supported

This replaces manual lists with a call to ab_glypgh::Font::codepoint_ids
plus names from the unicode_names2 crate.
This commit is contained in:
Emil Ernerfeldt
2021-06-24 17:35:56 +02:00
parent 749c5cbdc8
commit 1363ac4a24
7 changed files with 215 additions and 3993 deletions

7
Cargo.lock generated
View File

@@ -795,6 +795,7 @@ dependencies = [
"image",
"serde",
"syntect",
"unicode_names2",
]
[[package]]
@@ -2418,6 +2419,12 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
[[package]]
name = "unicode_names2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87d6678d7916394abad0d4b19df4d3802e1fd84abd7d701f39b75ee71b9e8cf1"
[[package]]
name = "untrusted"
version = "0.7.1"