| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |