From 942dd7327db269b13d8f1e3155f13165af723395 Mon Sep 17 00:00:00 2001 From: "jungshik@google.com" Date: Fri, 8 Aug 2008 19:48:08 +0000 Subject: Lowercase 'Arial Unicode MS' to avoid caching it twice in intl test. BUG=1241039,1314945,971960,1314940 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@584 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/platform/graphics/FontCacheWin.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'webkit') diff --git a/webkit/port/platform/graphics/FontCacheWin.cpp b/webkit/port/platform/graphics/FontCacheWin.cpp index 24b5b8a..480dbd9 100644 --- a/webkit/port/platform/graphics/FontCacheWin.cpp +++ b/webkit/port/platform/graphics/FontCacheWin.cpp @@ -293,6 +293,8 @@ static bool fontContainsCharacter(const FontPlatformData* font_data, i++; } cmap->freeze(); + // We don't lowercase |family| because all of them are under our control + // and they're already lowercased. fontCmapCache->set(family, cmap); return cmap->contains(character); } @@ -335,15 +337,16 @@ const SimpleFontData* FontCache::getFontDataForCharacters(const Font& font, // large repertoire. Eventually, we need to scan all the fonts // on the system to have a Firefox-like coverage and this needs // to move to base/gfx. + // Make sure that all of them are lowercased. const static wchar_t* const cjkFonts[] = { - L"Arial Unicode MS", + L"arial unicode ms", L"ms pgothic", L"simsun", L"gulim", L"pmingliu", L"code2000", - L"Bitstream Cyberbit", - L"Titus Cyberbit Basic", + L"bitstream cyberbit", + L"titus cyberbit basic", }; const static wchar_t* const commonFonts[] = { -- cgit v1.1