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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 18 17:50:16 PDT 2008


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





------- Comment #6 from joshchia at gmail.com  2008-06-18 17:50 PDT -------
I think this workaround doesn't actually work, or works with a major flaw--it
just causes the font matching to always match "Arial Unicode MS", even when I
specify <font face="Serif">.

(In reply to comment #2)
> 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: https://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