aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontConfigInterface_direct.cpp
diff options
context:
space:
mode:
authorGravatar Jungshik Shin <jshin@chromium.org>2017-07-18 16:42:32 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-19 13:12:14 +0000
commitcae60da0a92bf7e81c503939272479e89c2e019e (patch)
tree581cd6c94a586eb8ac274822902251c387a3202d /src/ports/SkFontConfigInterface_direct.cpp
parent44acb5b09bb87163bc9c010be915b3f33e3157eb (diff)
Add aliases mapping Windows CJ fonts to Noto Serif CJK
CrOS will have Noto Serif CJK as the default serif fonts for CJK. Aliases in Skia need to be updated. See https://chromium-review.googlesource.com/c/576708/ and https://chromium-review.googlesource.com/c/576789/ BUG=chromium:722470 TEST=With all the related CLs in, Noto Serif CJK {JP,SC,TC} are used when MS (P)Mincho,(N)Simsun,(P)MingLiu are requested. Change-Id: I8340c2b460671c0b2854360a89b051e0e9e8d57c Reviewed-on: https://skia-review.googlesource.com/24521 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/ports/SkFontConfigInterface_direct.cpp')
-rw-r--r--src/ports/SkFontConfigInterface_direct.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp
index d552befb5a..51a72e2816 100644
--- a/src/ports/SkFontConfigInterface_direct.cpp
+++ b/src/ports/SkFontConfigInterface_direct.cpp
@@ -259,24 +259,28 @@ FontEquivClass GetFontEquivClass(const char* fontname)
{ PMINCHO, "MS PMincho" },
{ PMINCHO, "\xef\xbc\xad\xef\xbc\xb3 \xef\xbc\xb0"
"\xe6\x98\x8e\xe6\x9c\x9d"},
+ { PMINCHO, "Noto Serif CJK JP" },
{ PMINCHO, "IPAPMincho" },
{ PMINCHO, "MotoyaG04Mincho" },
// MS 明朝
{ MINCHO, "MS Mincho" },
{ MINCHO, "\xef\xbc\xad\xef\xbc\xb3 \xe6\x98\x8e\xe6\x9c\x9d" },
+ { MINCHO, "Noto Serif CJK JP" },
{ MINCHO, "IPAMincho" },
{ MINCHO, "MotoyaG04MinchoMono" },
// 宋体
{ SIMSUN, "Simsun" },
{ SIMSUN, "\xe5\xae\x8b\xe4\xbd\x93" },
+ { SIMSUN, "Noto Serif CJK SC" },
{ SIMSUN, "MSung GB18030" },
{ SIMSUN, "Song ASC" },
// 新宋体
{ NSIMSUN, "NSimsun" },
{ NSIMSUN, "\xe6\x96\xb0\xe5\xae\x8b\xe4\xbd\x93" },
+ { NSIMSUN, "Noto Serif CJK SC" },
{ NSIMSUN, "MSung GB18030" },
{ NSIMSUN, "N Song ASC" },
@@ -290,21 +294,25 @@ FontEquivClass GetFontEquivClass(const char* fontname)
// 新細明體
{ PMINGLIU, "PMingLiU"},
{ PMINGLIU, "\xe6\x96\xb0\xe7\xb4\xb0\xe6\x98\x8e\xe9\xab\x94" },
+ { PMINGLIU, "Noto Serif CJK TC"},
{ PMINGLIU, "MSung B5HK"},
// 細明體
{ MINGLIU, "MingLiU"},
{ MINGLIU, "\xe7\xb4\xb0\xe6\x98\x8e\xe9\xab\x94" },
+ { MINGLIU, "Noto Serif CJK TC"},
{ MINGLIU, "MSung B5HK"},
// 新細明體
{ PMINGLIUHK, "PMingLiU_HKSCS"},
{ PMINGLIUHK, "\xe6\x96\xb0\xe7\xb4\xb0\xe6\x98\x8e\xe9\xab\x94_HKSCS" },
+ { PMINGLIUHK, "Noto Serif CJK TC"},
{ PMINGLIUHK, "MSung B5HK"},
// 細明體
{ MINGLIUHK, "MingLiU_HKSCS"},
{ MINGLIUHK, "\xe7\xb4\xb0\xe6\x98\x8e\xe9\xab\x94_HKSCS" },
+ { MINGLIUHK, "Noto Serif CJK TC"},
{ MINGLIUHK, "MSung B5HK"},
// Cambria