แก้ปัญหาตัวหนังสือหยักในบางเว็บ

เวลาเปิดเว็บด้วย iceweasel, epiphany หรือ iceape บน Debian บางครั้งจะเจอบางเว็บที่วาดด้วยฟอนต์บิตแมป ซึ่งเป็นรอยหยักไม่สวย เช่น ที่ advogato

สาเหตุเป็นเพราะใน stylesheet ของเว็บมีการใช้ฟอนต์ Lucida, Helvetica ซึ่งจะไป match เจอ luRS12-ISO8859-1.pcf.gz และ helvR12-ISO8859-1.pcf.gz ซึ่งเป็นแบบ PCF

$ fc-match lucida
luRS12-ISO8859-1.pcf.gz: "Lucida" "Sans"
$ fc-match helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"

เราสามารถแก้ปัญหานี้ได้ โดยปิดการใช้ฟอนต์ที่เป็นบิตแมปเสีย

# cd /etc/fonts/conf.d
# ln -s ../conf.avail/70-no-bitmaps.conf .

ทดสอบดู

$ fc-match lucida
Waree.ttf: "Waree" "Book"
$ fc-match helvetica
n019003l.pfb: "Nimbus Sans L" "Regular"

เนื่องจากไม่ได้มีฟอนต์ทั้งสองในรูปแบบเวกเตอร์ติดตั้งไว้ เลยไปเจอตัวอื่นที่ใกล้เคียงแทน ผลคือ เว็บจะแสดงผลด้วยแบบอักษรที่เป็นเวกเตอร์เรียบสวย ไม่มีรอยหยักแล้ว

Re: แก้ปัญหาตัวหนังสือหยักในบางเว็บ

ของผม ยังไม่ได้ทำ ก็ขึ้นอย่างนี้เลยครับ

$ fc-match lucidia
Norasi.ttf: "Norasi" "Regular"
$ fc-match helvetica
n019003l.pfb: "Nimbus Sans L" "Regular"

แต่ตอนนี้ ทำตามไว้แล้วครับ ก็ยังขึ้นเหมือนเดิม
___
Neutron: Linux Addict!

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> <pre> <blockquote> <img> <h3> <h4> <h5>
  • Lines and paragraphs break automatically.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.