logo blog.kpping.me

ติดตั้งฟอนต์ใหม่บน Fedora 35 ผ่าน Command Line

บน Fedora 35 เราสามารถเพิ่มฟอนต์ได้ง่าย ๆ ผ่าน Command Line (ที่ไม่ทำผ่าน GUI เพราะขี้เกียจโหลดโปรแกรมเพิ่ม และ แบบนี้จัดการได้ง่ายกว่า)

ตัวอย่างฟอนต์ที่ต้องการติดตั้งเพิ่ม TH Sarabun New

# download
curl -OL https://www.f0nt.com/download/sipafonts/THSarabunNew.zip

# unzip
unzip THSarabunNew.zip -d ./th-sarabun-new/

# move to fedora 35's font location
mkdir -p ~/.local/share/fonts
cp -r th-sarabun-new ~/.local/share/fonts/

# update cache
fc-cache -v