From ad77e55cc0a29fa2d5cb76077d2e4139a7ebabff Mon Sep 17 00:00:00 2001 From: jshin Date: Mon, 18 Aug 2014 08:07:51 -0700 Subject: [PATCH] Add alias mapping for Noto Sans CJK for ja/hans 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp index 10fbbcce1b..6fff03bb7a 100644 --- a/src/ports/SkFontConfigInterface_direct.cpp +++ b/src/ports/SkFontConfigInterface_direct.cpp @@ -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" },