| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // large repertoire. Eventually, we need to scan all the fonts | 165 // large repertoire. Eventually, we need to scan all the fonts |
| 166 // on the system to have a Firefox-like coverage. | 166 // on the system to have a Firefox-like coverage. |
| 167 // Make sure that all of them are lowercased. | 167 // Make sure that all of them are lowercased. |
| 168 const static wchar_t* const cjkFonts[] = { | 168 const static wchar_t* const cjkFonts[] = { |
| 169 L"arial unicode ms", L"ms pgothic", L"simsun", L"gulim", L"pmingliu", | 169 L"arial unicode ms", L"ms pgothic", L"simsun", L"gulim", L"pmingliu", |
| 170 L"wenquanyi zen hei", // Partial CJK Ext. A coverage but more widely | 170 L"wenquanyi zen hei", // Partial CJK Ext. A coverage but more widely |
| 171 // known to Chinese users. | 171 // known to Chinese users. |
| 172 L"ar pl shanheisun uni", L"ar pl zenkai uni", | 172 L"ar pl shanheisun uni", L"ar pl zenkai uni", |
| 173 L"han nom a", // Complete CJK Ext. A coverage. | 173 L"han nom a", // Complete CJK Ext. A coverage. |
| 174 L"code2000" // Complete CJK Ext. A coverage. | 174 L"code2000" // Complete CJK Ext. A coverage. |
| 175 // CJK Ext. B fonts are not listed here because it's of no use | 175 // CJK Ext. B fonts are not listed here because it's of no |
| 176 // with our current non-BMP character handling because we use | 176 // use with our current non-BMP character handling because we |
| 177 // Uniscribe for it and that code path does not go through here. | 177 // use Uniscribe for it and that code path does not go |
| 178 // through here. |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 const static wchar_t* const commonFonts[] = { | 181 const static wchar_t* const commonFonts[] = { |
| 181 L"tahoma", L"arial unicode ms", L"lucida sans unicode", | 182 L"tahoma", L"arial unicode ms", L"lucida sans unicode", |
| 182 L"microsoft sans serif", L"palatino linotype", | 183 L"microsoft sans serif", L"palatino linotype", |
| 183 // Six fonts below (and code2000 at the end) are not from MS, but | 184 // Six fonts below (and code2000 at the end) are not from MS, but |
| 184 // once installed, cover a very wide range of characters. | 185 // once installed, cover a very wide range of characters. |
| 185 L"dejavu serif", L"dejavu sasns", L"freeserif", L"freesans", L"gentium", | 186 L"dejavu serif", L"dejavu sasns", L"freeserif", L"freesans", L"gentium", |
| 186 L"gentiumalt", L"ms pgothic", L"simsun", L"gulim", L"pmingliu", | 187 L"gentiumalt", L"ms pgothic", L"simsun", L"gulim", L"pmingliu", |
| 187 L"code2000"}; | 188 L"code2000"}; |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after 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; | 425 return result; |
| 425 } | 426 } |
| 426 | 427 |
| 427 } // namespace blink | 428 } // namespace blink |
| OLD | NEW |