From b49106c0266ffa12994686e45366c586e2be45f6 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Dec 2016 01:59:04 +0800 Subject: fontconfig: Rewrite user-wide font configurations This user font configuration file should be placed at: ~/.config/fontconfig/fonts.conf (original `~/.fonts.conf' is deprecated) and the user fonts should locate at: ~/.local/share/fonts (original `~/.fonts' will be deprecated) NOTE: The "LC_CTYPE" environment variable should be remove, because it affects the behaviors of FontConfig! With "LC_CTYPE=zh_CN.UTF-8", a Chinese font (or a font with Chinese language support) is always preprended to the generic font families (i.e., serif, sans-serif, monospace), which overrides the configurations. It is also tested that Fcitx works OK without "LC_CTYPE=zh_CN.UTF-8" --- _config/fontconfig/fonts.conf | 397 +++++++++++++++--------------------------- 1 file changed, 139 insertions(+), 258 deletions(-) (limited to '_config') diff --git a/_config/fontconfig/fonts.conf b/_config/fontconfig/fonts.conf index 543c78a..cf08c22 100644 --- a/_config/fontconfig/fonts.conf +++ b/_config/fontconfig/fonts.conf @@ -1,272 +1,153 @@ - - + - fonts + System-wide location: + /etc/fonts/local.conf + User-wide: + $XDG_CONFIG_HOME/fontconfig/fonts.conf + (default: ~/.config/fontconfig/fonts.conf) - - - - true - - - true - - - true - - - hintmedium - - - lcddefault - - - rgb - - - - true - - + References: + [1] https://freedesktop.org/software/fontconfig/fontconfig-user.html + [2] https://wiki.archlinux.org/index.php/font_configuration + [3] https://wiki.gentoo.org/wiki/Fontconfig + [4] https://eev.ee/blog/2015/05/20/i-stared-into-the-fontconfig-and-the-fontconfig-stared-back-at-me/ - - - - + Aaron LI + Created: 2014-04-06 + Updated: 2016-12-05 + --> - - - - - sans-serif - - - serif - - - monospace - - - sans-serif - - + + + + + true + + + + true + + + true + + + + true + + - - - Times - - Times New Roman - - - serif - - - - Helvetica - - Arial - - - sans-serif - - - - Courier - - Courier New - - - monospace - - + + + + Source Serif Pro + serif + + + Noto Serif + serif + + + + Source Code Pro + monospace + + + Fira Code + monospace + + + Noto Mono + monospace + - - - - Courier New - - - monospace - - - - - Courier - - - monospace - - + + + + sans-serif + + + serif + + + + + + + sans-serif + + + monospace + + + - - - - - zh - - - serif - - - WenQuanYi Micro Hei - WenQuanYi Zen Hei - - - - - - - serif - - - DejaVu Serif - Liberation Serif - Linux Libertine - Linux Libertine O - Bitstream Vera Serif - Droid Serif - AR PL UMing CN - AR PL UMing TW - AR PL UMing HK - AR PL SungtiL GB - - - - - sans-serif - - - DejaVu Sans - Liberation Sans - Linux Biolinum - Linux Biolinum O - Source Sans Pro - Droid Sans - WenQuanYi Micro Hei - WenQuanYi Zen Hei - Droid Sans Fallback - AR PL UKai CN - AR PL UKai TW - AR PL UKai HK - AR PL KaitiM GB - AR PL KaitiM Big5 - - - - - monospace - - - DejaVu Sans Mono - Liberation Mono - Source Code Pro - Inconsolata - Bitstream Vera Sans Mono - Droid Sans Mono - WenQuanYi Micro Hei Mono - WenQuanYi Zen Hei Mono - - - - - - serif - - DejaVu Serif - Liberation Serif - Linux Libertine - Linux Libertine O - Bitstream Vera Serif - Droid Serif - AR PL UMing CN - AR PL UMing TW - AR PL UMing HK - AR PL SungtiL GB - - - - sans-serif - - DejaVu Sans - Liberation Sans - Linux Biolinum - Linux Biolinum O - Source Sans Pro - Bitstream Vera Sans - Droid Sans - WenQuanYi Micro Hei - WenQuanYi Zen Hei - Droid Sans Fallback - AR PL UKai CN - AR PL UKai TW - AR PL UKai HK - AR PL KaitiM GB - AR PL KaitiM Big5 - - - - monospace - - DejaVu Sans Mono - Liberation Mono - Source Code Pro - Inconsolata - Bitstream Vera Sans Mono - Droid Sans Mono - WenQuanYi Micro Hei Mono - WenQuanYi Zen Hei Mono - - - + + + + + + serif + + + Source Serif Pro + Noto Serif + + + + + + + + + sans-serif + + Source Sans Pro + Noto Sans + + + + + monospace + + Source Code Pro + Fira Code + Noto Mono + + + + + + Helvetica + + + Source Sans Pro + + + + + Arial + + + Source Sans Pro + + -- cgit v1.2.2