วันนี้เพิ่งติดตั้ง Ubuntu 8.04 LTS ลงบน ThinkPad R61 ตัวใหม่ของผม พบภาษาไทยสามารถใช้ได้เลยทันทีใน Ubuntu เวอร์ชันนี้ แต่ก็ยังพบปัญหาหนึ่งก็คือ Fonts สำหรับภาษาไทยที่ติดตั้งมาให้นั้น มันไม่ถูกใจผมเลย ดังนั้นผมจึงจัดการ copy Fonts ของ Windows มาใช้บน Linux ครับ ซึ่งมีขั้นตอนดังนี้
- คัดลอกไฟล์ Fonts ของ MS Windows ไปไว้ใน Directory ที่ชื่อว่า "/usr/share/fonts/truetype/thai" ด้วยคำสั่งต่อไปนี้:
$ sudo cp /media/drive_c/WINDOWS/Fonts/*.TTF /usr/share/fonts/truetype/thai
$ sudo cp /media/drive_c/WINDOWS/Fonts/*.ttf /usr/share/fonts/truetype/thai
- เรียกคำสั่ง fc-cache เพื่อสร้าง Fonts Information cache file ขึ้นมาใหม่ด้วยคำสั่งต่อไปนี้:
$ sudo fc-cache -fv
เพียงแค่นี้เราก็สามารถใช้ Fonts ของ Windows บน Linux ได้แล้วครับ
Post new comment