Add alias mapping for Noto Sans CJK for ja/hans
authorjshin <jshin@chromium.org>
Mon, 18 Aug 2014 15:07:51 +0000 (08:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 Aug 2014 15:07:51 +0000 (08:07 -0700)
Chrome/Chromium OS are getting a brand new CJK fonts (Noto Sans CJK).
We want them to be used in place of common Japanese and Simplified
Chinese sans-serif fonts.

BUG=chromium:399080
TEST=With CrOS CL
(https://chromium-review.googlesource.com/#/c/212624/), web pages
using 'Simhei' and 'MSP Gothic' are rendered with Noto Sans CJK.

R=reed@chromium.org, bungeman@google.com

Author: jshin@chromium.org

Review URL: https://codereview.chromium.org/476203003

src/ports/SkFontConfigInterface_direct.cpp

index 10fbbcc..6fff03b 100644 (file)
@@ -221,6 +221,7 @@ FontEquivClass GetFontEquivClass(const char* fontname)
         { PGOTHIC, "MS PGothic" },
         { PGOTHIC, "\xef\xbc\xad\xef\xbc\xb3 \xef\xbc\xb0"
                    "\xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf" },
+        { PGOTHIC, "Noto Sans CJK Japanese" },
         { PGOTHIC, "IPAPGothic" },
         { PGOTHIC, "MotoyaG04Gothic" },
 
@@ -259,6 +260,7 @@ FontEquivClass GetFontEquivClass(const char* fontname)
         // 黑体
         { SIMHEI, "Simhei" },
         { SIMHEI, "\xe9\xbb\x91\xe4\xbd\x93" },
+        { SIMHEI, "Noto Sans CJK Simplified Chinese" },
         { SIMHEI, "MYingHeiGB18030" },
         { SIMHEI, "MYingHeiB5HK" },