Commit 0aff2ed4 authored by eric@webkit.org's avatar eric@webkit.org

2010-02-24 Jungshik Shin <jshin@chromium.org>

        Reviewed by David Levin.

        [Chromium] Traditional Chinese Chrome on Windows should use PMingLiu instead of Simsun for Han characters
        https://bugs.webkit.org/show_bug.cgi?id=35319

        No visible change in the layout test.

        * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
        (WebCore::):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8ecb96d1
2010-02-24 Jungshik Shin <jshin@chromium.org>
Reviewed by David Levin.
[Chromium] Traditional Chinese Chrome on Windows should use PMingLiu instead of Simsun for Han characters
https://bugs.webkit.org/show_bug.cgi?id=35319
No visible change in the layout test.
* platform/graphics/chromium/FontUtilsChromiumWin.cpp:
(WebCore::):
2010-02-24 Anthony Ricaud <rik@webkit.org>
Reviewed by Pavel Feldman.
......
......@@ -60,6 +60,7 @@ void initializeScriptFontMap(ScriptToFontMap& scriptFontMap)
{USCRIPT_GREEK, L"times new roman"},
{USCRIPT_CYRILLIC, L"times new roman"},
{USCRIPT_SIMPLIFIED_HAN, L"simsun"},
{USCRIPT_TRADITIONAL_HAN, L"pmingliu"},
{USCRIPT_HIRAGANA, L"ms pgothic"},
{USCRIPT_KATAKANA, L"ms pgothic"},
{USCRIPT_KATAKANA_OR_HIRAGANA, L"ms pgothic"},
......@@ -106,14 +107,10 @@ void initializeScriptFontMap(ScriptToFontMap& scriptFontMap)
localeFamily = scriptFontMap[USCRIPT_HIRAGANA];
else if (locale == icu::Locale::getKorean())
localeFamily = scriptFontMap[USCRIPT_HANGUL];
else if (locale == icu::Locale::getTraditionalChinese())
localeFamily = scriptFontMap[USCRIPT_TRADITIONAL_HAN];
else {
// Use Simplified Chinese font for all other locales including
// Traditional Chinese because Simsun (SC font) has a wider
// coverage (covering both SC and TC) than PMingLiu (TC font).
// Note that |fontMap| does not have a separate entry for
// USCRIPT_TRADITIONAL_HAN for that reason.
// This also speeds up the TC version of Chrome when rendering SC
// pages.
// For other locales, use the simplified Chinese font for Han.
localeFamily = scriptFontMap[USCRIPT_SIMPLIFIED_HAN];
}
if (localeFamily)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment