(จาก qua.name 17 สิงหาคม 2563)
- sudo apt-get install fonts-noto fonts-noto-extra fonts-noto-core fonts-noto-mono fonts-noto-ui-core fonts-noto-ui-extra fonts-noto-cjk fonts-noto-unhinted fonts-noto-hinted fonts-noto-cjk-extra fonts-noto-color-emoji
- mkdir -p $HOME/.config/fontconfig
- cat > $HOME/.config/fontconfig/fonts.conf
แปะอันนี้ใส่ไป
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match>
<test compare="contains" name="lang">
<string>th</string>
</test>
<edit mode="prepend" name="family">
<string>Noto Sans Thai</string>
</edit>
</match>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
</prefer>
</alias>
<alias>
<family>sans</family>
<prefer>
<family>Noto Sans</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Mono</family>
</prefer>
</alias>
</fontconfig>
`
- กด control D
เสร็จ
Top comments (0)