[Webkit-unassigned] [Bug 16792] [GTK] Fails to render Japanese/Chinese text with simple path

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 8 00:02:46 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16792


alp at atoker.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[GTK] Fails to render       |[GTK] Fails to render
                   |japanese text with simple   |Japanese/Chinese text with
                   |path                        |simple path




------- Comment #2 from alp at atoker.com  2008-02-08 00:02 PDT -------
Bin Chen tracked down the issue. The problem is font fallback. A very simple
workaround (substitute "Arial Unicode MS" with any full-Unicode font you have
on your system):


Index: WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp
===================================================================
--- WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp       (revision
30082)
+++ WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp       (working copy)
@@ -81,6 +81,8 @@ FontPlatformData::FontPlatformData(const

     if (!FcPatternAddString(pattern, FC_FAMILY, reinterpret_cast<const
FcChar8*>(fcfamily)))
         goto freePattern;
+    if (!FcPatternAddString(pattern, FC_FAMILY, reinterpret_cast<const
FcChar8*>("Arial Unicode MS")))
+        goto freePattern;
     if (!FcPatternAddInteger(pattern, FC_SLANT, fcslant))
         goto freePattern;
     if (!FcPatternAddInteger(pattern, FC_WEIGHT, fcweight))




We haven't figured out what the correct fix for this is yet. (Perhaps the Pango
font selection patch would have helped here, but it has not been re-submitted.)


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list