OLD | NEW |
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 static const UChar* ethiopicFonts[] = {L"Nyala", L"Abyssinica SIL", L"Ethiop
ia Jiret", L"Visual Geez Unicode", L"GF Zemen Unicode", L"Ebrima", 0}; | 155 static const UChar* ethiopicFonts[] = {L"Nyala", L"Abyssinica SIL", L"Ethiop
ia Jiret", L"Visual Geez Unicode", L"GF Zemen Unicode", L"Ebrima", 0}; |
156 static const UChar* oriyaFonts[] = {L"Kalinga", L"ori1Uni", L"Lohit Oriya",
L"Nirmala UI", 0}; | 156 static const UChar* oriyaFonts[] = {L"Kalinga", L"ori1Uni", L"Lohit Oriya",
L"Nirmala UI", 0}; |
157 static const UChar* laoFonts[] = {L"Leelawadee UI", L"DokChampa", L"Saysetth
a OT", L"Phetsarath OT", L"Code2000", 0}; | 157 static const UChar* laoFonts[] = {L"Leelawadee UI", L"DokChampa", L"Saysetth
a OT", L"Phetsarath OT", L"Code2000", 0}; |
158 static const UChar* tibetanFonts[] = {L"Microsoft Himalaya", L"Jomolhari", L
"Tibetan Machine Uni", 0}; | 158 static const UChar* tibetanFonts[] = {L"Microsoft Himalaya", L"Jomolhari", L
"Tibetan Machine Uni", 0}; |
159 static const UChar* sinhalaFonts[] = {L"Iskoola Pota", L"AksharUnicode", L"N
irmala UI", 0}; | 159 static const UChar* sinhalaFonts[] = {L"Iskoola Pota", L"AksharUnicode", L"N
irmala UI", 0}; |
160 static const UChar* yiFonts[] = {L"Microsoft Yi Balti", L"Nuosu SIL", L"Code
2000", 0}; | 160 static const UChar* yiFonts[] = {L"Microsoft Yi Balti", L"Nuosu SIL", L"Code
2000", 0}; |
161 // http://www.bethmardutho.org/support/meltho/download/index.php | 161 // http://www.bethmardutho.org/support/meltho/download/index.php |
162 static const UChar* syriacFonts[] = {L"Estrangelo Edessa", L"Estrangelo Nisi
bin", L"Code2000", 0}; | 162 static const UChar* syriacFonts[] = {L"Estrangelo Edessa", L"Estrangelo Nisi
bin", L"Code2000", 0}; |
163 static const UChar* myanmarFonts[] = {L"Myanmar Text", L"Padauk", L"Parabaik
", L"Myanmar3", L"Code2000", 0}; | 163 static const UChar* myanmarFonts[] = {L"Myanmar Text", L"Padauk", L"Parabaik
", L"Myanmar3", L"Code2000", 0}; |
164 static const UChar* gothicFonts[] = {L"Segoe UI Symbol", 0}; | 164 static const UChar* gothicFonts[] = {L"Segoe UI Symbol", 0}; |
| 165 static const UChar* oghamFonts[] = {L"Segoe UI Symbol", 0}; |
165 static const UChar* hangulFonts[] = {L"gulim", L"Malgun Gothic", 0}; | 166 static const UChar* hangulFonts[] = {L"gulim", L"Malgun Gothic", 0}; |
166 static const UChar* devanagariFonts[] = {L"mangal", L"Nirmala UI", 0}; | 167 static const UChar* devanagariFonts[] = {L"mangal", L"Nirmala UI", 0}; |
167 static const UChar* gujaratiFonts[] = {L"shruti", L"Nirmala UI", 0}; | 168 static const UChar* gujaratiFonts[] = {L"shruti", L"Nirmala UI", 0}; |
168 static const UChar* bengaliFonts[] = {L"vrinda", L"Nirmala UI", 0}; | 169 static const UChar* bengaliFonts[] = {L"vrinda", L"Nirmala UI", 0}; |
169 static const UChar* teluguFonts[] = {L"gautami", L"Nirmala UI", 0}; | 170 static const UChar* teluguFonts[] = {L"gautami", L"Nirmala UI", 0}; |
170 static const UChar* tamilFonts[] = {L"latha", L"Nirmala UI", 0}; | 171 static const UChar* tamilFonts[] = {L"latha", L"Nirmala UI", 0}; |
171 static const UChar* kannadaFonts[] = {L"tunga", L"Nirmala UI", 0}; | 172 static const UChar* kannadaFonts[] = {L"tunga", L"Nirmala UI", 0}; |
172 static const UChar* gurumukhiFonts[] = {L"raavi", L"Nirmala UI", 0}; | 173 static const UChar* gurumukhiFonts[] = {L"raavi", L"Nirmala UI", 0}; |
173 static const UChar* thaiFonts[] = {L"tahoma", L"Leelawadee UI", L"Leelawadee
", 0}; | 174 static const UChar* thaiFonts[] = {L"tahoma", L"Leelawadee UI", L"Leelawadee
", 0}; |
174 static const UChar* hebrewFonts[] = {L"david", L"Segoe UI", 0}; | 175 static const UChar* hebrewFonts[] = {L"david", L"Segoe UI", 0}; |
(...skipping 13 matching lines...) Expand all Loading... |
188 {USCRIPT_KHMER, khmerFonts}, | 189 {USCRIPT_KHMER, khmerFonts}, |
189 {USCRIPT_ETHIOPIC, ethiopicFonts}, | 190 {USCRIPT_ETHIOPIC, ethiopicFonts}, |
190 {USCRIPT_ORIYA, oriyaFonts}, | 191 {USCRIPT_ORIYA, oriyaFonts}, |
191 {USCRIPT_LAO, laoFonts}, | 192 {USCRIPT_LAO, laoFonts}, |
192 {USCRIPT_TIBETAN, tibetanFonts}, | 193 {USCRIPT_TIBETAN, tibetanFonts}, |
193 {USCRIPT_SINHALA, sinhalaFonts}, | 194 {USCRIPT_SINHALA, sinhalaFonts}, |
194 {USCRIPT_YI, yiFonts}, | 195 {USCRIPT_YI, yiFonts}, |
195 {USCRIPT_SYRIAC, syriacFonts}, | 196 {USCRIPT_SYRIAC, syriacFonts}, |
196 {USCRIPT_MYANMAR, myanmarFonts}, | 197 {USCRIPT_MYANMAR, myanmarFonts}, |
197 {USCRIPT_GOTHIC, gothicFonts}, | 198 {USCRIPT_GOTHIC, gothicFonts}, |
| 199 {USCRIPT_OGHAM, oghamFonts}, |
198 {USCRIPT_HANGUL, hangulFonts}, | 200 {USCRIPT_HANGUL, hangulFonts}, |
199 {USCRIPT_DEVANAGARI, devanagariFonts}, | 201 {USCRIPT_DEVANAGARI, devanagariFonts}, |
200 {USCRIPT_GUJARATI, gujaratiFonts}, | 202 {USCRIPT_GUJARATI, gujaratiFonts}, |
201 {USCRIPT_BENGALI, bengaliFonts}, | 203 {USCRIPT_BENGALI, bengaliFonts}, |
202 {USCRIPT_TELUGU, teluguFonts}, | 204 {USCRIPT_TELUGU, teluguFonts}, |
203 {USCRIPT_TAMIL, tamilFonts}, | 205 {USCRIPT_TAMIL, tamilFonts}, |
204 {USCRIPT_KANNADA, kannadaFonts}, | 206 {USCRIPT_KANNADA, kannadaFonts}, |
205 {USCRIPT_GURMUKHI, gurumukhiFonts}, | 207 {USCRIPT_GURMUKHI, gurumukhiFonts}, |
206 {USCRIPT_THAI, thaiFonts}, | 208 {USCRIPT_THAI, thaiFonts}, |
207 {USCRIPT_HEBREW, hebrewFonts}, | 209 {USCRIPT_HEBREW, hebrewFonts}, |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 family = L"lucida sans unicode"; | 450 family = L"lucida sans unicode"; |
449 } | 451 } |
450 } | 452 } |
451 | 453 |
452 if (scriptChecked) | 454 if (scriptChecked) |
453 *scriptChecked = script; | 455 *scriptChecked = script; |
454 return family; | 456 return family; |
455 } | 457 } |
456 | 458 |
457 } // namespace blink | 459 } // namespace blink |
OLD | NEW |