RESOLVED FIXED Bug 16942
[GTK] Oddities in font selection and fall back
https://bugs.webkit.org/show_bug.cgi?id=16942
Summary [GTK] Oddities in font selection and fall back
Khaled Hosny
Reported 2008-01-19 12:50:11 PST
WebKitGtk doesn't respect the font specified in html files, it always use the same font for rendering Arabic regardless of the specified font, even if it has Arabic glyphs. More ever, choosing a font that doesn't have Latin glyphs causes the English text to be rendered as white spaces or boxes.
Attachments
test file (187 bytes, text/html)
2008-01-19 12:51 PST, Khaled Hosny
no flags
Screenshot of the testcase in GtkLauncher (28.99 KB, image/png)
2008-01-19 12:57 PST, Khaled Hosny
no flags
The same testcase in Epiphany (50.59 KB, image/png)
2008-01-19 12:58 PST, Khaled Hosny
no flags
Screenshot with "Lohit Punjabi" font (20.69 KB, image/png)
2008-01-19 13:02 PST, Khaled Hosny
no flags
test file (186 bytes, text/html)
2008-01-19 13:05 PST, Khaled Hosny
no flags
Khaled Hosny
Comment 1 2008-01-19 12:51:57 PST
Created attachment 18546 [details] test file
Khaled Hosny
Comment 2 2008-01-19 12:53:00 PST
Comment on attachment 18546 [details] test file ><HTML style="font-family: Dejavu Sans; font-size: 50px;"><HEAD> ><META content="text/html; charset=utf-8" http-equiv="Content-Type"/></HEAD><BODY>أبجد هوز حطي كلمن ><BR/> >The Quich Brown Fox > ></BODY></HTML>
Khaled Hosny
Comment 3 2008-01-19 12:57:32 PST
Created attachment 18547 [details] Screenshot of the testcase in GtkLauncher
Khaled Hosny
Comment 4 2008-01-19 12:58:34 PST
Created attachment 18548 [details] The same testcase in Epiphany
Khaled Hosny
Comment 5 2008-01-19 13:02:44 PST
Created attachment 18550 [details] Screenshot with "Lohit Punjabi" font This font doesn't have Latin glyphs
Khaled Hosny
Comment 6 2008-01-19 13:05:58 PST
Created attachment 18551 [details] test file Correcting the font name, sorry
Alp Toker
Comment 7 2008-01-19 23:50:50 PST
Thanks for the detailed bug description. The lack of integration between the WebKit Pango text renderer and the font selection system is the cause of the Arabic text always using a default font. The simple fix for this depends on the patch in #15229 landing. The block carets for western text may be related to an issue in the simple text path, bug #16792.
Alp Toker
Comment 8 2008-09-09 21:07:45 PDT
Fixed in r36309 for the "FreeType" backend I believe. Please re-open if the issue persists.
Note You need to log in before you can comment on or make changes to this bug.