Sugree

Main menu

  • About
    • Self
  • Project
    • jibjib
    • microblog-purple
    • Mitter
  • English
  • Thai

Tweak ABC font configuration for Hardy

Submitted by sugree on Wed, 06/18/2008 - 20:03.
  • Hardy
  • Ubuntu
  • Thai

เมื่อตอนเที่ยงแก้ปัญหาสระอำได้ แต่ดันลืมดูโปรแกรมอื่น เพราะไม่ได้ปิดเปิดใหม่ ผลคือ Serif กลายเป็น Angsima ส่วน Sans Serif ก็กลายเป็น Bromlila ซึ่งไม่เหมาะกับชีวิตประจำวันเท่าไหร่ อยู่แต่ใน OpenOffice.org ก็พอ กลับถึงบ้านเปิดมาเจอถึงกับช็อค ต้องมานั่งแงะ conf ใน /etc/fonts/conf.d แบบเร่งด่วน ได้ความตามนี้

เหตุเกิดจาก 65-z-thaifont-abc.conf ที่ดันไปเซ็ต alias ทับ 65-ttf-thai-tlwg.conf ที่ใช้มาจนชิน วิธีแก้ก็ง่ายดาย แก้ไฟล์ 65-z-thaifont-abc.conf เป็นแบบนี้

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <test name="family"><string>Angsima</string></test>
        <edit name="autohint" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
    </match>
    <match target="font">
        <test name="family"><string>Bromlila</string></test>
        <edit name="autohint" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
    </match>
    <match target="font">
        <test name="family"><string>Corada</string></test>
        <edit name="autohint" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
    </match>
</fontconfig>

แล้วเรียกคำสั่ง

fc-cache -r

ก็เรียบร้อย อย่าลืมปิดเปิดโปรแกรมใหม่ด้วย

Reply

The content of this field is kept private and will not be shown publicly.
Input format
  • 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> <blockcode> <pre>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You can use Markdown syntax to format and style the text.

More information about formatting options

Popular Tags

Assumption BarCamp BarCampBangkok BarCampBangkok2 BarCampBkk2 Creature Drupal DrupalCamp DrupalCampBangkok Education Family Google Hardware Hardy Health Java JibCafe jibjib Joke NokNok OpenOffice.org Python Review SoC Social Network Trip TwittBKK TwittDay Twitter Ubuntu
more tags

Powered By

debian
apache
drupal
drupal.in.th
feedburner

© 2007-2008 Sugree Phatanapherom. Creative Commons [Feed Content / Comment]
RoopleTheme