nixos: source-han-{sans,serif} -> source-han-{sans,serif}-vf-otf
Steam Beta has updated embedded Chromium build to 109.0.5414.120, now it supports rendering variable fonts.
This commit is contained in:
parent
4083560054
commit
b19ee82d31
2 changed files with 10 additions and 206 deletions
|
@ -45,8 +45,11 @@
|
|||
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
||||
|
||||
### Adobe Source Han
|
||||
source-han-sans
|
||||
source-han-serif
|
||||
# The reason I use Source Han instead of Noto CJK,
|
||||
# is because I heard from #archlinux-cn, Adobe packages font better.
|
||||
# You can 100% use noto-fonts-cjk-{sans,serif} if you prefer consistency/other reason.
|
||||
source-han-sans-vf-otf
|
||||
source-han-serif-vf-otf
|
||||
source-han-mono
|
||||
|
||||
### Noto Fonts
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<!-- Latin font -->
|
||||
<!-- Default serif font -->
|
||||
<alias binding="strong"><family>serif</family>
|
||||
<prefer><family>Source Han Serif SC</family></prefer></alias>
|
||||
<prefer><family>Source Han Serif SC VF</family></prefer></alias>
|
||||
|
||||
<!-- Default sans-serif font -->
|
||||
<alias binding="strong"><family>sans-serif</family>
|
||||
|
@ -52,218 +52,19 @@
|
|||
<!-- You can change this font to the language variant you want -->
|
||||
<match target="pattern">
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif SC</string></edit>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif SC VF</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC VF</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono SC</string></edit>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono SC VF</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
|
||||
<!-- Chinese -->
|
||||
<!-- "lang=zh" or "lang=zh-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
|
||||
<!-- Chinese Variants (standard, specified by variants) -->
|
||||
<!-- "lang=zh-hans" or "lang=zh-hans-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hans</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hans</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hans</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hans</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
<!-- "lang=zh-hant" or "lang=zh-hant-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif TC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans TC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono TC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans TC</string></edit>
|
||||
</match>
|
||||
<!-- "lang=zh-hant-hk" or "lang=zh-hant-hk-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif HC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans HC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono HC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hant</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans HC</string></edit>
|
||||
</match>
|
||||
|
||||
<!-- Chinese Compatible (non-standard, specified by country) -->
|
||||
<!-- "lang=zh-cn" or "lang=zh-cn-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-cn</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-cn</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-cn</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono SC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-cn</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC</string></edit>
|
||||
</match>
|
||||
<!-- "lang=zh-tw" or "lang=zh-tw-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-tw</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif TC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-tw</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans TC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-tw</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono TC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-tw</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans TC</string></edit>
|
||||
</match>
|
||||
<!-- "lang=zh-hk" or "lang=zh-hk-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hk</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif HC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hk</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans HC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hk</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono HC</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>zh-hk</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans HC</string></edit>
|
||||
</match>
|
||||
|
||||
<!-- Japanese -->
|
||||
<!-- "lang=ja" or "lang=ja-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ja</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ja</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ja</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ja</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans</string></edit>
|
||||
</match>
|
||||
|
||||
<!-- Korean -->
|
||||
<!-- "lang=ko" or "lang=ko-*" -->
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ko</string></test>
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Serif K</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ko</string></test>
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans K</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ko</string></test>
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Mono K</string></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="lang" compare="contains"><string>ko</string></test>
|
||||
<test name="family"><string>system-ui</string></test>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans K</string></edit>
|
||||
<edit name="family" mode="append" binding="strong"><string>Source Han Sans SC VF</string></edit>
|
||||
</match>
|
||||
|
||||
</fontconfig>
|
||||
|
|
Loading…
Reference in a new issue