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

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

Issue 2386333002: reflow comments in platform/fonts (Closed)
Patch Set: comments Created 4 years, 2 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
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
3 * reserved.
3 * 4 *
4 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
6 * met: 7 * met:
7 * 8 *
8 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 11 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer 12 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the 13 * in the documentation and/or other materials provided with the
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // fallback fonts for now. 513 // fallback fonts for now.
513 if (!family || character > 0xFFFF) { 514 if (!family || character > 0xFFFF) {
514 int plane = character >> 16; 515 int plane = character >> 16;
515 switch (plane) { 516 switch (plane) {
516 case 1: 517 case 1:
517 family = L"code2001"; 518 family = L"code2001";
518 break; 519 break;
519 case 2: 520 case 2:
520 // Use a Traditional Chinese ExtB font if in Traditional Chinese locale. 521 // Use a Traditional Chinese ExtB font if in Traditional Chinese locale.
521 // Otherwise, use a Simplified Chinese ExtB font. Windows Japanese 522 // Otherwise, use a Simplified Chinese ExtB font. Windows Japanese
522 // fonts do support a small subset of ExtB (that are included in JIS X 0 213), 523 // fonts do support a small subset of ExtB (that are included in JIS X
523 // but its coverage is rather sparse. 524 // 0213), but its coverage is rather sparse.
524 // Eventually, this should be controlled by lang/xml:lang. 525 // Eventually, this should be controlled by lang/xml:lang.
525 if (icu::Locale::getDefault() == icu::Locale::getTraditionalChinese()) 526 if (icu::Locale::getDefault() == icu::Locale::getTraditionalChinese())
526 family = L"pmingliu-extb"; 527 family = L"pmingliu-extb";
527 else 528 else
528 family = L"simsun-extb"; 529 family = L"simsun-extb";
529 break; 530 break;
530 default: 531 default:
531 family = L"lucida sans unicode"; 532 family = L"lucida sans unicode";
532 } 533 }
533 } 534 }
534 535
535 if (scriptChecked) 536 if (scriptChecked)
536 *scriptChecked = script; 537 *scriptChecked = script;
537 return family; 538 return family;
538 } 539 }
539 540
540 } // namespace blink 541 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698