Tweak ABC font configuration for Hardy
เมื่อตอนเที่ยงแก้ปัญหาสระอำได้ แต่ดันลืมดูโปรแกรมอื่น เพราะไม่ได้ปิดเปิดใหม่ ผลคือ 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
ก็เรียบร้อย อย่าลืมปิดเปิดโปรแกรมใหม่ด้วย





Post new comment