Bug 16942 - [GTK] Oddities in font selection and fall back
Summary: [GTK] Oddities in font selection and fall back
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on: 15229
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-19 12:50 PST by Khaled Hosny
Modified: 2008-09-09 21:07 PDT (History)
2 users (show)

See Also:


Attachments
test file (187 bytes, text/html)
2008-01-19 12:51 PST, Khaled Hosny
no flags Details
Screenshot of the testcase in GtkLauncher (28.99 KB, image/png)
2008-01-19 12:57 PST, Khaled Hosny
no flags Details
The same testcase in Epiphany (50.59 KB, image/png)
2008-01-19 12:58 PST, Khaled Hosny
no flags Details
Screenshot with "Lohit Punjabi" font (20.69 KB, image/png)
2008-01-19 13:02 PST, Khaled Hosny
no flags Details
test file (186 bytes, text/html)
2008-01-19 13:05 PST, Khaled Hosny
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khaled Hosny 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.
Comment 1 Khaled Hosny 2008-01-19 12:51:57 PST
Created attachment 18546 [details]
test file
Comment 2 Khaled Hosny 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>
Comment 3 Khaled Hosny 2008-01-19 12:57:32 PST
Created attachment 18547 [details]
Screenshot of the testcase in GtkLauncher
Comment 4 Khaled Hosny 2008-01-19 12:58:34 PST
Created attachment 18548 [details]
The same testcase in Epiphany
Comment 5 Khaled Hosny 2008-01-19 13:02:44 PST
Created attachment 18550 [details]
Screenshot with "Lohit Punjabi" font

This font doesn't have Latin glyphs
Comment 6 Khaled Hosny 2008-01-19 13:05:58 PST
Created attachment 18551 [details]
test file

Correcting the font name, sorry
Comment 7 Alp Toker 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.
Comment 8 Alp Toker 2008-09-09 21:07:45 PDT
Fixed in r36309 for the "FreeType" backend I believe. Please re-open if the issue persists.