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

Side by Side Diff: Source/platform/fonts/win/FontFallbackWin.cpp

Issue 1002613002: Make some unicode symbols be rendered by Segoe UI Symbol on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix TestExpectations Created 5 years, 8 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 | « LayoutTests/fast/text/unicode-fallback-font.html ('k') | 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 (c) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc. All rights reser ved. 2 * Copyright (c) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc. All rights reser ved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 } 275 }
276 initialized = true; 276 initialized = true;
277 } 277 }
278 278
279 UBlockCode block = ublock_getCode(ucs4); 279 UBlockCode block = ublock_getCode(ucs4);
280 switch (block) { 280 switch (block) {
281 case UBLOCK_EMOTICONS: 281 case UBLOCK_EMOTICONS:
282 return emojiFont; 282 return emojiFont;
283 case UBLOCK_PLAYING_CARDS: 283 case UBLOCK_PLAYING_CARDS:
284 case UBLOCK_MISCELLANEOUS_SYMBOLS:
284 case UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS: 285 case UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS:
285 case UBLOCK_TRANSPORT_AND_MAP_SYMBOLS: 286 case UBLOCK_TRANSPORT_AND_MAP_SYMBOLS:
286 case UBLOCK_ALCHEMICAL_SYMBOLS: 287 case UBLOCK_ALCHEMICAL_SYMBOLS:
288 case UBLOCK_RUNIC:
289 case UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS:
290 case UBLOCK_DINGBATS:
291 case UBLOCK_GENERAL_PUNCTUATION:
287 return symbolFont; 292 return symbolFont;
288 default: 293 default:
289 return 0; 294 return 0;
290 }; 295 };
291 } 296 }
292 297
293 } // namespace 298 } // namespace
294 299
295 // FIXME: this is font fallback code version 0.1 300 // FIXME: this is font fallback code version 0.1
296 // - Cover all the scripts 301 // - Cover all the scripts
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 family = L"lucida sans unicode"; 389 family = L"lucida sans unicode";
385 } 390 }
386 } 391 }
387 392
388 if (scriptChecked) 393 if (scriptChecked)
389 *scriptChecked = script; 394 *scriptChecked = script;
390 return family; 395 return family;
391 } 396 }
392 397
393 } // namespace blink 398 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/text/unicode-fallback-font.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698