Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: src/ports/SkFontConfigInterface_direct.cpp

Issue 476203003: Add alias mapping for Noto Sans CJK for ja/hans (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2009 Google Inc. 2 * Copyright 2009 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */ 8 /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */
9 9
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 { MONO, "Cousine" }, 214 { MONO, "Cousine" },
215 { MONO, "Liberation Mono" }, 215 { MONO, "Liberation Mono" },
216 216
217 { SYMBOL, "Symbol" }, 217 { SYMBOL, "Symbol" },
218 { SYMBOL, "Symbol Neu" }, 218 { SYMBOL, "Symbol Neu" },
219 219
220 // MS Pゴシック 220 // MS Pゴシック
221 { PGOTHIC, "MS PGothic" }, 221 { PGOTHIC, "MS PGothic" },
222 { PGOTHIC, "\xef\xbc\xad\xef\xbc\xb3 \xef\xbc\xb0" 222 { PGOTHIC, "\xef\xbc\xad\xef\xbc\xb3 \xef\xbc\xb0"
223 "\xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf" }, 223 "\xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf" },
224 { PGOTHIC, "Noto Sans CJK Japanese" },
224 { PGOTHIC, "IPAPGothic" }, 225 { PGOTHIC, "IPAPGothic" },
225 { PGOTHIC, "MotoyaG04Gothic" }, 226 { PGOTHIC, "MotoyaG04Gothic" },
226 227
227 // MS ゴシック 228 // MS ゴシック
228 { GOTHIC, "MS Gothic" }, 229 { GOTHIC, "MS Gothic" },
229 { GOTHIC, "\xef\xbc\xad\xef\xbc\xb3 " 230 { GOTHIC, "\xef\xbc\xad\xef\xbc\xb3 "
230 "\xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf" }, 231 "\xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf" },
231 { GOTHIC, "IPAGothic" }, 232 { GOTHIC, "IPAGothic" },
232 { GOTHIC, "MotoyaG04GothicMono" }, 233 { GOTHIC, "MotoyaG04GothicMono" },
233 234
(...skipping 18 matching lines...) Expand all
252 253
253 // 新宋体 254 // 新宋体
254 { NSIMSUN, "NSimsun" }, 255 { NSIMSUN, "NSimsun" },
255 { NSIMSUN, "\xe6\x96\xb0\xe5\xae\x8b\xe4\xbd\x93" }, 256 { NSIMSUN, "\xe6\x96\xb0\xe5\xae\x8b\xe4\xbd\x93" },
256 { NSIMSUN, "MSung GB18030" }, 257 { NSIMSUN, "MSung GB18030" },
257 { NSIMSUN, "N Song ASC" }, 258 { NSIMSUN, "N Song ASC" },
258 259
259 // 黑体 260 // 黑体
260 { SIMHEI, "Simhei" }, 261 { SIMHEI, "Simhei" },
261 { SIMHEI, "\xe9\xbb\x91\xe4\xbd\x93" }, 262 { SIMHEI, "\xe9\xbb\x91\xe4\xbd\x93" },
263 { SIMHEI, "Noto Sans CJK Simplified Chinese" },
262 { SIMHEI, "MYingHeiGB18030" }, 264 { SIMHEI, "MYingHeiGB18030" },
263 { SIMHEI, "MYingHeiB5HK" }, 265 { SIMHEI, "MYingHeiB5HK" },
264 266
265 // 新細明體 267 // 新細明體
266 { PMINGLIU, "PMingLiU"}, 268 { PMINGLIU, "PMingLiU"},
267 { PMINGLIU, "\xe6\x96\xb0\xe7\xb4\xb0\xe6\x98\x8e\xe9\xab\x94" }, 269 { PMINGLIU, "\xe6\x96\xb0\xe7\xb4\xb0\xe6\x98\x8e\xe9\xab\x94" },
268 { PMINGLIU, "MSung B5HK"}, 270 { PMINGLIU, "MSung B5HK"},
269 271
270 // 細明體 272 // 細明體
271 { MINGLIU, "MingLiU"}, 273 { MINGLIU, "MingLiU"},
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 *trimmedMatches.append() = match[i]; 726 *trimmedMatches.append() = match[i];
725 } 727 }
726 } 728 }
727 729
728 SkFontStyleSet_FC* sset = SkNEW_ARGS(SkFontStyleSet_FC, 730 SkFontStyleSet_FC* sset = SkNEW_ARGS(SkFontStyleSet_FC,
729 (trimmedMatches.begin(), 731 (trimmedMatches.begin(),
730 trimmedMatches.count())); 732 trimmedMatches.count()));
731 #endif 733 #endif
732 return false; 734 return false;
733 } 735 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698