วิธีการติดตั้ง Fonts ของ Microsoft Windows ลงใน Linux

วันนี้เพิ่งติดตั้ง Ubuntu 8.04 LTS ลงบน ThinkPad R61 ตัวใหม่ของผม พบภาษาไทยสามารถใช้ได้เลยทันทีใน Ubuntu เวอร์ชันนี้ แต่ก็ยังพบปัญหาหนึ่งก็คือ Fonts สำหรับภาษาไทยที่ติดตั้งมาให้นั้น มันไม่ถูกใจผมเลย ดังนั้นผมจึงจัดการ copy Fonts ของ Windows มาใช้บน Linux ครับ ซึ่งมีขั้นตอนดังนี้

  1. คัดลอกไฟล์ 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
  2. เรียกคำสั่ง fc-cache เพื่อสร้าง Fonts Information cache file ขึ้นมาใหม่ด้วยคำสั่งต่อไปนี้:
    $ sudo fc-cache -fv

เพียงแค่นี้เราก็สามารถใช้ Fonts ของ Windows บน Linux ได้แล้วครับ

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img> <object> <embed> <param>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.
ญาณรักข์ วรรณสาย