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

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

Issue 1711623002: Make PMingLiu-ExtB the same minAntiAliasSizeForFont settings as PMingLiu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 (C) 2006, 2007 Apple Computer, Inc. 2 * Copyright (C) 2006, 2007 Apple Computer, Inc.
3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 s_useSubpixelPositioning)); 375 s_useSubpixelPositioning));
376 376
377 struct FamilyMinSize { 377 struct FamilyMinSize {
378 const wchar_t* family; 378 const wchar_t* family;
379 unsigned minSize; 379 unsigned minSize;
380 }; 380 };
381 const static FamilyMinSize minAntiAliasSizeForFont[] = { 381 const static FamilyMinSize minAntiAliasSizeForFont[] = {
382 { L"simsun", 11 }, 382 { L"simsun", 11 },
383 { L"dotum", 12 }, 383 { L"dotum", 12 },
384 { L"gulim", 12 }, 384 { L"gulim", 12 },
385 { L"pmingliu", 11 } 385 { L"pmingliu", 11 },
386 { L"pmingliu-extb", 11 }
386 }; 387 };
387 size_t numFonts = WTF_ARRAY_LENGTH(minAntiAliasSizeForFont); 388 size_t numFonts = WTF_ARRAY_LENGTH(minAntiAliasSizeForFont);
388 for (size_t i = 0; i < numFonts; i++) { 389 for (size_t i = 0; i < numFonts; i++) {
389 FamilyMinSize entry = minAntiAliasSizeForFont[i]; 390 FamilyMinSize entry = minAntiAliasSizeForFont[i];
390 if (typefacesMatchesFamily(tf.get(), entry.family)) { 391 if (typefacesMatchesFamily(tf.get(), entry.family)) {
391 result->setMinSizeForAntiAlias(entry.minSize); 392 result->setMinSizeForAntiAlias(entry.minSize);
392 break; 393 break;
393 } 394 }
394 } 395 }
395 396
(...skipping 22 matching lines...) Expand all
418 if (typefacesMatchesFamily(tf.get(), family)) { 419 if (typefacesMatchesFamily(tf.get(), family)) {
419 result->setMinSizeForSubpixel(minSizeForSubpixelForFont); 420 result->setMinSizeForSubpixel(minSizeForSubpixelForFont);
420 break; 421 break;
421 } 422 }
422 } 423 }
423 424
424 return result.release(); 425 return result.release();
425 } 426 }
426 427
427 } // namespace blink 428 } // namespace blink
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