- avoid the simplified Chinese font linking code for characters that are
not in any Windows code page
* platform/graphics/win/FontCacheWin.cpp:
(WebCore::FontCache::getFontDataForCharacters):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28832
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-18 Dan Bernstein <mitz@apple.com>
+
+ Reviewed by Dave Hyatt.
+
+ - avoid the simplified Chinese font linking code for characters that are
+ not in any Windows code page
+
+ * platform/graphics/win/FontCacheWin.cpp:
+ (WebCore::FontCache::getFontDataForCharacters):
+
2007-12-18 Brady Eidson <beidson@apple.com>
Reviewed by Adele
const UINT simplifiedChineseCP = 936;
UINT codePage;
HFONT result;
- if (SUCCEEDED(langFontLink->CodePagesToCodePage(actualCodePages, simplifiedChineseCP, &codePage)) && codePage == simplifiedChineseCP) {
+ if (actualCodePages && SUCCEEDED(langFontLink->CodePagesToCodePage(actualCodePages, simplifiedChineseCP, &codePage)) && codePage == simplifiedChineseCP) {
DWORD simplifiedChineseCodePages;
langFontLink->CodePageToCodePages(simplifiedChineseCP, &simplifiedChineseCodePages);
langFontLink->MapFont(hdc, simplifiedChineseCodePages, characters[0], &result);