Configurable font support

Use fontconfig to load fonts. Fonts can be added to the `fonts` map in
the config, and referenced from individual widgets' configurations for
customizability.

Fonts default to values "mono" and "sans" if nothing is set.
This commit is contained in:
Hilmar Gústafsson
2020-06-14 17:01:42 +02:00
committed by Kenny Levinsen
parent 1a62696662
commit 48985c470a
26 changed files with 396 additions and 14128 deletions
+2 -1
View File
@@ -22,7 +22,7 @@ pulseaudio-widget = ["libpulse-binding"]
[dependencies]
smithay-client-toolkit = "0.6.4"
byteorder = "1.3"
rusttype = "0.8"
rusttype = "^0.9"
chrono = "0.4"
nix = "0.16"
memmap = "0.7"
@@ -43,3 +43,4 @@ serde_yaml = { version = "0.8", optional = true }
libpulse-binding = { version = "2.15", optional = true }
alsa = { version = "0.4.0", optional = true }
fontconfig = "0.2.0"