From b4e8dcd75a21639a0f8a54f15db9dd47b042f53b Mon Sep 17 00:00:00 2001 From: Uyanide Date: Fri, 5 Dec 2025 00:10:27 +0100 Subject: [PATCH] fonts --- README.md | 9 +-- config/waybar/.config/waybar/style.css | 2 +- memo/fontconfig.md | 84 ++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 9 deletions(-) create mode 100644 memo/fontconfig.md diff --git a/README.md b/README.md index f0e496a..40d980b 100644 --- a/README.md +++ b/README.md @@ -100,11 +100,4 @@ Based on [noelsimbolon/mpv-config](https://github.com/noelsimbolon/mpv-config.gi ## Fonts -including: - -- Maple Mono NF CN -- MesloLGM Nerd Font (& Mono) -- WenQuanYi Micro Hei -- Sour Gummy -- Noto Sans -- ... +See [fontconfig.md](https://github.com/Uyanide/dotfiles/blob/main/memo/fontconfig.md). diff --git a/config/waybar/.config/waybar/style.css b/config/waybar/.config/waybar/style.css index 4fbce30..3ad02a9 100644 --- a/config/waybar/.config/waybar/style.css +++ b/config/waybar/.config/waybar/style.css @@ -7,7 +7,7 @@ /* Font(s) */ * { /* main font icons CJK fallback */ - font-family: 'Sour Gummy Light', 'Meslo LGM Nerd Font Mono', 'WenQuanYi Micro Hei', 'Noto Sans', sans-serif; + font-family: 'Sour Gummy Light', 'Meslo LGM Nerd Font Mono', 'Sarasa UI SC', 'Noto Sans', sans-serif; font-size: 16px; } diff --git a/memo/fontconfig.md b/memo/fontconfig.md new file mode 100644 index 0000000..f90fa78 --- /dev/null +++ b/memo/fontconfig.md @@ -0,0 +1,84 @@ +### Font packages (involved in fontconfig) + +- ttf-sarasa-gothi +- ttf-symbola (AUR) +- noto-fonts +- noto-fonts-cjk +- noto-fonts-emoji +- ttf-nerd-fonts-symbols +- maplemono-nf-cn (AUR) + +### Other fonts (used but not involved in fontconfig) + +- Sour Gummy +- Font Awesome 6 Free +- Meslo LGM Nerd Font Mono + +### Fontconfig configuration + +> `~/.config/fontconfig/fonts.conf` + +```xml + + + + + true + true + hintslight + none + false + lcddefault + + + + + + Noto Sans CJK SC + + Symbola + + + + + sans-serif + + Sarasa UI SC + Sarasa UI J + Noto color Emoji + Symbols Nerd Font + + + + + system-ui + + Sarasa UI SC + Noto Color Emoji + Symbols Nerd Font + + + + + serif + + Noto Serif + Noto Serif CJK SC + Noto Serif CJK JP + Noto Color Emoji + Symbols Nerd Font + + + + + monospace + + Maple Mono NF CN + Sarasa Mono SC + Sarasa Mono J + Noto Color Emoji + Symbols Nerd Font + + + +```