selective font inclusion for emojis

Selectively include fonts for emojis that are used in the interface. This is done instead of including both the entirety of `NotoEmoji-Regular` and `emoji-icon-font`. This now requires the `pyftsubset` utility to be installed (under arch, this can be done with the package `python-fonttools`)

TODO: need to fix github workflows
This commit is contained in:
Simon Gardling
2022-05-17 15:46:47 -04:00
parent 94041774c6
commit 542fd9caba
3 changed files with 92 additions and 5 deletions

37
Cargo.lock generated
View File

@@ -650,6 +650,12 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650"
[[package]]
name = "dunce"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "453440c271cf5577fd2a40e4942540cb7d0d2f85e27c8d07dd0023c925a67541"
[[package]]
name = "eframe"
version = "0.18.0"
@@ -818,6 +824,17 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "fsio"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09e87827efaf94c7a44b562ff57de06930712fe21b530c3797cdede26e6377eb"
dependencies = [
"dunce",
"rand",
"users",
]
[[package]]
name = "gethostname"
version = "0.2.3"
@@ -1890,6 +1907,15 @@ dependencies = [
"bytemuck",
]
[[package]]
name = "run_script"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dd85213e37f76b40186ee781cf3a689b05c518c3102c987acf679c573d8e4ef"
dependencies = [
"fsio",
]
[[package]]
name = "rustc-demangle"
version = "0.1.21"
@@ -2371,6 +2397,16 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "users"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24cc0f6d6f267b73e5a2cadf007ba8f9bc39c6a6f9666f8cf25ea809a153b032"
dependencies = [
"libc",
"log",
]
[[package]]
name = "uuid"
version = "0.8.2"
@@ -2791,6 +2827,7 @@ dependencies = [
"lazy_static",
"parsing",
"rayon",
"run_script",
"ruzstd",
"serde",
"serde_json",