安装主题和图标
yay -S adapta-kde-git papirus-icon-theme-git
去设置里选择
字体安装
1、下载字体:
sudo pacman -S xx # 安装字体
sudo fc-cache -fv # 刷新缓存
# 字体文件目录:/usr/share/fonts
adobe-source-sans-fonts # 思源Source Sans Pro英文字体
adobe-source-code-pro-fonts # Source Code Pro英文等宽字体
adobe-source-serif-fonts # 思源Source Serif Pro英文衬线字体
adobe-source-han-serif-cn-fonts # 思源宋体
adobe-source-han-mono-cn-fonts # 思源中文等宽
adobe-source-han-sans-cn-fonts # 思源黑体中文简体
adobe-source-han-sans-tw-fonts # 思源黑体中文繁体台湾
adobe-source-han-sans-hk-fonts # 思源黑体中文繁体香港
adobe-source-han-sans-jp-fonts # 思源黑体日文
adobe-source-han-sans-kr-fonts # 思源黑体韩文
noto-fonts-cjk noto-fonts-emoji noto-fonts-extra #谷歌开源中文字体及表情
2、设置系统字体,并将font dpi设为120或144
3、默认情况下,Fontconfig 的用户配置文件位于 ~/.config/fontconfig/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
<fontconfig>
<!-- 关闭内嵌点阵字体 -->
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<!-- 显示器使用的像素排列方式. 现代显示器基本都是用rgb排列. -->
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<!-- 字体微调的程度, 可选为 hintnone, hintslight (默认), hintmedium, hintfull. -->
<!-- 简单来说,更高的 hinting 等级可以使字体更锐利,但同时也会损失更多的细节. -->
<!-- 如果你的显示器的 DPI 高得不像话 (>=300), 那么就可以关闭 hinting, 因为字体会自然对齐像素. -->
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<!-- 抗锯齿. 除非你的屏幕DPI奇高否则建议开启. -->
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<!-- 关于lcdfilter -->
<match target="font">
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
</edit>
</match>
<!-- 英文默认字体 -->
<match>
<!-- 默认衬线字体 -->
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Source Serif Pro</string>
</edit>
</match>
<match target="pattern">
<!-- 默认无衬线字体 -->
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Source Sans Pro</string>
</edit>
</match>
<match target="pattern">
<!-- 默认等宽字体 -->
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Source Code Pro</string>
</edit>
</match>
<!-- 中文默认字体 -->
<match>
<!-- 默认衬线字体 -->
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Serif CN</string>
</edit>
</match>
<match>
<!-- 默认无衬线字体 -->
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Sans C</string>
</edit>
</match>
<match>
<!-- 默认等宽字体 -->
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Mono SC</string>
</edit>
</match>
<!-- 设置备用字体 -->
<!-- Fallback fonts preference order -->
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>Noto Sans CJK JP</family>
<family>Noto Sans CJK KR</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Noto Serif CJK SC</family>
<family>Noto Serif CJK TC</family>
<family>Noto Serif CJK JP</family>
<family>Noto Serif CJK KR</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Sarasa Term SC</family>
<family>Sarasa Term TC</family>
<family>Sarasa Term J</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
</fontconfig>
手动安装
- 打开/usr/share/fonts/目录
- 创建truetype和opentype文件夹
- .ttf扩展名的放在truetype 文件夹
.otf 扩展名的放在opentype文件夹 - 刷新缓存 sudo fc-cache -fv
sudo mkdir /usr/share/fonts/truetype
sudo mkdir /usr/share/fonts/opentype
sudo cp /path/to/fonts/*.ttf /usr/share/fonts/truetype
sudo cp /path/to/fonts/*.otf /usr/share/fonts/opentype
sudo fc-cache -fv
参考
Linux 下的字体调校指南
Manjaro KDE Plasma 安装配置指南
3 Fonts That Will Make You Want To Use KDE Plasma Forever!
Arch Wiki - Font Configuration/Chinese