https://bugs.webkit.org/show_bug.cgi?id=16792
------- Comment #6 from joshchia@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<constFcChar8*>(fcfamily))) goto freePattern;
- if (!FcPatternAddString(pattern, FC_FAMILY, reinterpret_cast<const
FcChar8*>("Arial Unicode MS")))
if (!FcPatternAddInteger(pattern, FC_SLANT, fcslant)) goto freePattern; if (!FcPatternAddInteger(pattern, FC_WEIGHT, fcweight))goto freePattern;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.)
fonts-bugs@lists.fedoraproject.org