Closed Bug 1165590 Opened 9 years ago Closed 9 years ago

Nightly 41.0a1 (2015-05-16) Thai Character set difficult to reading.

Categories

(Core :: Graphics: Text, defect)

41 Branch
x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
firefox40 --- unaffected
firefox41 + verified

People

(Reporter: wig_2006, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: regression, Whiteboard: [gfx-noted])

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0
Build ID: 20150516030207

Steps to reproduce:

1. Access web have Thai Language example www.blognone.com.
2. Found Thai Character set difficult to reading.


Actual results:

I have Thai Character set difficult to reading.


Expected results:

I have Thai Character set easy to reading same as other browser example Google Chrome.
Picture to compare with Nightly and Google Chrome Dev lastest version.
OS: Unspecified → Linux
Hardware: Unspecified → x86
Component: Untriaged → Graphics: Text
Product: Firefox → Core
Pushlog: 
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=3cfde06d952a&tochange=d6d25651b082

Regressed by: Bug 1056479
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Thanks for the report.

This is not a duplicate of bug 1165611, because here the wrong font is used.
It may be the same issue as bug 1165788, but best I think to keep reports separate until the cause is identified.

Can you paste the output from these commands please?

  fc-match -s sans:lang=th | head -n 10
  fc-match -s serif:lang=th | head -n 10
Blocks: 1056479
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
(In reply to Karl Tomlinson (ni?:karlt) from comment #4)
> Can you paste the output from these commands please?
> 
>   fc-match -s sans:lang=th | head -n 10
>   fc-match -s serif:lang=th | head -n 10


ek@sigmataupi:~$ fc-match -s sans:lang=th | head -n 10
Waree.ttf: "Waree" "Book"
NanumGothic.ttf: "NanumGothic" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
n019003l.pfb: "Nimbus Sans L" "Regular"
DroidSans.ttf: "Droid Sans" "Regular"
KhmerOS.ttf: "Khmer OS" "Regular"
MuktiNarrow.ttf: "Mukti Narrow" "Regular"
lohit_bn.ttf: "Lohit Bengali" "Regular"
lohit_gu.ttf: "Lohit Gujarati" "Regular"


ek@sigmataupi:~$ fc-match -s serif:lang=th | head -n 10
lohit_ta.ttf: "Lohit Tamil" "Regular"
lohit_pa.ttf: "Lohit Punjabi" "Regular"
utkal.ttf: "utkal" "Medium"
lohit_gu.ttf: "Lohit Gujarati" "Regular"
lohit_hi.ttf: "Lohit Hindi" "Regular"
MuktiNarrow.ttf: "Mukti Narrow" "Regular"
Kinnari.ttf: "Kinnari" "Medium"
NanumMyeongjo.ttf: "NanumMyeongjo" "Regular"
NanumMyeongjoBold.ttf: "NanumMyeongjo" "Bold"
DroidSerif-Regular.ttf: "Droid Serif" "Regular"
Flags: needinfo?(wig_2006)
(In reply to Ekanan Ketunuti from comment #5)
> (In reply to Karl Tomlinson (ni?:karlt) from comment #4)
> > Can you paste the output from these commands please?
> > 
> >   fc-match -s sans:lang=th | head -n 10
> >   fc-match -s serif:lang=th | head -n 10
> 
> 
> ek@sigmataupi:~$ fc-match -s sans:lang=th | head -n 10
> Waree.ttf: "Waree" "Book"
> NanumGothic.ttf: "NanumGothic" "Regular"
> DejaVuSans.ttf: "DejaVu Sans" "Book"
> DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
> n019003l.pfb: "Nimbus Sans L" "Regular"
> DroidSans.ttf: "Droid Sans" "Regular"
> KhmerOS.ttf: "Khmer OS" "Regular"
> MuktiNarrow.ttf: "Mukti Narrow" "Regular"
> lohit_bn.ttf: "Lohit Bengali" "Regular"
> lohit_gu.ttf: "Lohit Gujarati" "Regular"

Waree seems reasonable as the first match here, though some of the others near the top of the list are surprising...

> ek@sigmataupi:~$ fc-match -s serif:lang=th | head -n 10
> lohit_ta.ttf: "Lohit Tamil" "Regular"
> lohit_pa.ttf: "Lohit Punjabi" "Regular"
> utkal.ttf: "utkal" "Medium"
> lohit_gu.ttf: "Lohit Gujarati" "Regular"
> lohit_hi.ttf: "Lohit Hindi" "Regular"
> MuktiNarrow.ttf: "Mukti Narrow" "Regular"
> Kinnari.ttf: "Kinnari" "Medium"
> NanumMyeongjo.ttf: "NanumMyeongjo" "Regular"
> NanumMyeongjoBold.ttf: "NanumMyeongjo" "Bold"
> DroidSerif-Regular.ttf: "Droid Serif" "Regular"

...but why on earth does fc-match offer a bunch of Indic fonts here?
I just upgraded to 14.04 LTS over 12.04 LTS.
Here come the results.

> ek@sigmataupi:~$ fc-match -s sans:lang=th | head -n 10
> Waree.ttf: "Waree" "Book"
> DejaVuSans.ttf: "DejaVu Sans" "Book"
> DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
> n019003l.pfb: "Nimbus Sans L" "Regular"
> DroidSansFallbackFull.ttf: "Droid Sans Fallback" "Regular"
> KhmerOS.ttf: "Khmer OS" "Regular"
> MuktiNarrow.ttf: "Mukti Narrow" "Regular"
> NanumGothic.ttf: "NanumGothic" "Regular"
> lohit_bn.ttf: "Lohit Bengali" "Regular"
> lohit_gu.ttf: "Lohit Gujarati" "Regular"


> ek@sigmataupi:~$ fc-match -s serif:lang=th | head -n 10
> Kinnari.ttf: "Kinnari" "Medium"
> DejaVuSerif.ttf: "DejaVu Serif" "Book"
> DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"
> n021003l.pfb: "Nimbus Roman No9 L" "Regular"
> Norasi.ttf: "Norasi" "Regular"
> KhmerOS.ttf: "Khmer OS" "Regular"
> MuktiNarrow.ttf: "Mukti Narrow" "Regular"
> NanumMyeongjo.ttf: "NanumMyeongjo" "Regular"
> lohit_bn.ttf: "Lohit Bengali" "Regular"
> lohit_gu.ttf: "Lohit Gujarati" "Regular"


> ek@sigmataupi:~$ fc-list ":lang=th"
> /usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf: Tlwg Typo:style=Bold
> /usr/share/fonts/truetype/tlwg/Umpush.ttf: Umpush:style=Book
> /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf: FreeSerif:style=Bold Italic,получерен курсивен,negreta cursiva,tučné kurzíva,fed kursiv,Fett-Kursiv,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,gros cursiv,Обычный Курсив,Tučná kurzíva,Fet Kursiv,ตัวเอียงหนา,Kalın İtalik,huruf tebal kursif,жирний курсив,Polkrepko Pežeče,treknais kursīvs,pusjuodis kursyvas,nghiêng đậm,Lodi etzana,धृष्ट-तिरछा
> /usr/share/fonts/truetype/tlwg/Loma-Oblique.ttf: Loma:style=Oblique
> /usr/share/fonts/truetype/tlwg/Norasi-BoldOblique.ttf: Norasi:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/TlwgTypo-Oblique.ttf: Tlwg Typo:style=Oblique
> /usr/share/fonts/truetype/tlwg/Purisa-BoldOblique.ttf: Purisa:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/TlwgTypo.ttf: Tlwg Typo:style=Medium
> /usr/share/fonts/truetype/tlwg/Kinnari-Italic.ttf: Kinnari:style=Italic
> /usr/share/fonts/truetype/tlwg/Purisa.ttf: Purisa:style=Medium
> /usr/share/fonts/truetype/tlwg/Sawasdee-BoldOblique.ttf: Sawasdee:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/Kinnari-Oblique.ttf: Kinnari:style=Oblique
> /usr/share/fonts/truetype/tlwg/Umpush-Oblique.ttf: Umpush:style=Oblique
> /usr/share/fonts/truetype/tlwg/Sawasdee-Bold.ttf: Sawasdee:style=Bold
> /usr/share/fonts/truetype/tlwg/TlwgMono.ttf: TlwgMono:style=Medium
> /usr/share/fonts/truetype/tlwg/Umpush-BoldOblique.ttf: Umpush:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/TlwgTypewriter-BoldOblique.ttf: TlwgTypewriter:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/TlwgMono-Oblique.ttf: TlwgMono:style=Oblique
> /usr/share/fonts/truetype/tlwg/Purisa-Bold.ttf: Purisa:style=Bold
> /usr/share/fonts/truetype/tlwg/Waree-Oblique.ttf: Waree:style=Oblique
> /usr/share/fonts/truetype/tlwg/TlwgTypist.ttf: Tlwg Typist:style=Medium
> /usr/share/fonts/truetype/tlwg/Garuda-Bold.ttf: Garuda:style=Bold
> /usr/share/fonts/truetype/tlwg/TlwgTypist-BoldOblique.ttf: Tlwg Typist:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/TlwgTypist-Oblique.ttf: Tlwg Typist:style=Oblique
> /usr/share/fonts/truetype/tlwg/Loma-BoldOblique.ttf: Loma:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/TlwgMono-BoldOblique.ttf: TlwgMono:style=BoldOblique
> /usr/share/fonts/truetype/freefont/FreeSerif.ttf: FreeSerif:style=Regular,нормален,normal,obyčejné,Mittel,µεσαία,Normaali,Normál,Normale,Gemiddeld,odmiana zwykła,Обычный,Normálne,ปกติ,menengah,прямій,Navadno,vidējs,normalusis,عادی,vừa,Arrunta,सामान्य
> /usr/share/fonts/truetype/tlwg/Norasi-Bold.ttf: Norasi:style=Bold
> /usr/share/fonts/truetype/tlwg/Sawasdee-Oblique.ttf: Sawasdee:style=Oblique
> /usr/share/fonts/truetype/tlwg/Kinnari-Bold.ttf: Kinnari:style=Bold
> /usr/share/fonts/truetype/tlwg/TlwgMono-Bold.ttf: TlwgMono:style=Bold
> /usr/share/fonts/truetype/tlwg/Umpush-Light.ttf: Umpush:style=Light
> /usr/share/fonts/truetype/tlwg/Garuda-Oblique.ttf: Garuda:style=Oblique
> /usr/share/fonts/truetype/tlwg/Norasi.ttf: Norasi:style=Regular
> /usr/share/fonts/truetype/tlwg/TlwgTypist-Bold.ttf: Tlwg Typist:style=Bold
> /usr/share/fonts/truetype/tlwg/TlwgTypewriter-Bold.ttf: TlwgTypewriter:style=Bold
> /usr/share/fonts/truetype/tlwg/Sawasdee.ttf: Sawasdee:style=Regular
> /usr/share/fonts/truetype/tlwg/TlwgTypo-BoldOblique.ttf: Tlwg Typo:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/Waree.ttf: Waree:style=Book
> /usr/share/fonts/truetype/tlwg/Umpush-Bold.ttf: Umpush:style=Bold
> /usr/share/fonts/truetype/tlwg/Loma.ttf: Loma:style=Book
> /usr/share/fonts/truetype/tlwg/Norasi-Oblique.ttf: Norasi:style=Oblique
> /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf: FreeSerif:style=Bold,получерен,negreta,tučné,fed,Fett,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,gros,Обычный,Fet,ตัวหนา,Kalın,huruf tebal,жирний,Polkrepko,treknraksts,pusjuodis,ضخیم,đậm,Lodia,धृष्ट
> /usr/share/fonts/truetype/tlwg/Loma-Bold.ttf: Loma:style=Bold
> /usr/share/fonts/truetype/tlwg/Purisa-Oblique.ttf: Purisa:style=Oblique
> /usr/share/fonts/truetype/tlwg/Waree-BoldOblique.ttf: Waree:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/Garuda-BoldOblique.ttf: Garuda:style=BoldOblique
> /usr/share/fonts/truetype/tlwg/Norasi-Italic.ttf: Norasi:style=Italic
> /usr/share/fonts/truetype/tlwg/TlwgTypewriter.ttf: TlwgTypewriter:style=Medium
> /usr/share/fonts/truetype/tlwg/Kinnari-BoldItalic.ttf: Kinnari:style=BoldItalic
> /usr/share/fonts/truetype/droid/DroidSansThai.ttf: Droid Sans Thai:style=Regular
> /usr/share/fonts/truetype/tlwg/TlwgTypewriter-Oblique.ttf: TlwgTypewriter:style=Oblique
> /usr/share/fonts/truetype/tlwg/Kinnari-BoldOblique.ttf: Kinnari:style=BoldOblique
> /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf: FreeSerif:style=Italic,курсивен,cursiva,kurzíva,kursiv,Λειψίας,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,kursywa,Itálico,cursiv,Курсив,ตัวเอียง,İtalik,kursif,Ležeče,kursīvs,kursivas,nghiêng,Etzana,तिरछा
> /usr/share/fonts/truetype/tlwg/Umpush-LightOblique.ttf: Umpush:style=LightOblique
> /usr/share/fonts/truetype/tlwg/Garuda.ttf: Garuda:style=Book
> /usr/share/fonts/truetype/tlwg/Kinnari.ttf: Kinnari:style=Medium
> /usr/share/fonts/truetype/tlwg/Waree-Bold.ttf: Waree:style=Bold
> /usr/share/fonts/truetype/tlwg/Norasi-BoldItalic.ttf: Norasi:style=BoldItalic

Instead of Waree the wrong font being used is FreeSerif.

Setting following pref restore the expected font.

  user_pref("font.default.th", "sans-serif");
  user_pref("font.name.sans-serif.th", "Waree");
  user_pref("font.name.serif.th", "Kinnari");
[Tracking Requested - why for this release]: regression
Status: REOPENED → NEW
Keywords: regression
(In reply to Ekanan Ketunuti from comment #7)

> > ek@sigmataupi:~$ fc-match -s sans:lang=th | head -n 10
> > Waree.ttf: "Waree" "Book"

> > ek@sigmataupi:~$ fc-match -s serif:lang=th | head -n 10
> > Kinnari.ttf: "Kinnari" "Medium"

> Instead of Waree the wrong font being used is FreeSerif.
> 
> Setting following pref restore the expected font.
> 
>   user_pref("font.default.th", "sans-serif");
>   user_pref("font.name.sans-serif.th", "Waree");
>   user_pref("font.name.serif.th", "Kinnari");

Thanks.  That at least means that these preferences are being used, but leaves
the question of why they the recent code is not resolving these to the
expected fonts.  I suspect bug 390900 is also involved here (but not the whole
issue).
Depends on: 390900
Whiteboard: [gfx-noted]
Depends on: 1164735, 1167072
I think this should be fixed by a couple other fixes that I just landed to inbould.

Here's a trybuild to test with:

http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jdaggett@mozilla.com-829cfaed76d9/

Please let me know whether this fixes your problem or not.
(In reply to John Daggett (:jtd) from comment #10)
> I think this should be fixed by a couple other fixes that I just landed to
> inbould.
> 
> Here's a trybuild to test with:
> 
> http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jdaggett@mozilla.
> com-829cfaed76d9/
> 
> Please let me know whether this fixes your problem or not.

This fixes the problem.
Resolved by changes in bug 1164735 and 1167072.
Status: NEW → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Adding a tracking flag for FF41. It's good to see that this bug is fixed verified too!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: