การติดตั้งฟอนต์ภาษาไทย สำหรับ CentOS 5.4

วิธีติดตั้งฟอนต์ไทยสำหรับ CentOS 5.4

CentOS 5.4


ดาวน์โหลดฟอนต์ไทยมาก่อน

# wget ftp://linux.thai.net/pub/ThaiLinux/software/thai-ttf/thai-ttf-0.4.13.tar.gz

แตกไฟล์ออกก่อน

# tar xvfz thai-ttf-0.4.13.tar.gz

เข้าไปที่โฟลเดอร์

# cd thai-ttf-0.4.13

ล็อคอินเป็นแอดมินก่อน

# su (แล้วใส่รหัสผ่าน)

สร้างโฟลเดอร์สำหรับเก็บฟอนต์

# mkdir /usr/share/fonts/thai-ttf

คัดลอกฟอนต์ไทยทั้งหมดไปเก็บไว้ที่โฟลเดอร์ใหม่

# cp *.* /usr/share/fonts/thai-ttf/

เพิ่มเติ่มบางที่เขาแนะนำให้ทำ เพื่อให้โปรแกรมต่างๆเรียกใช้งานฟอนต์ได้(แต่ผมทำแล้วไม่ได้ แต่จากคำสั่งบางบน ก็เพียงพอแล้ว)

# chkfontpath -add /usr/share/fonts/thai-ttf

หรือ

# chkfontpath -a /usr/share/fonts/thai-ttf

และตามด้วยทำสั่ง

# chkfontpath -l

เสร็จจากคำสั่งทั้งหมดแล้ว ก็สั่งรีบูตระบบเพื่อเริ่มใหม่

# reboot

หรือ

# shutdown -r now

เรื่องที่เนื้อหาคล้ายกัน:

  1. วิดีโอวิธีติดตั้ง CentOS และ Web Server Packages
This entry was posted in CentOS, Linux and tagged , , , , . Bookmark the permalink.

ใส่ความเห็น

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comments links could be nofollow free.