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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 static const UChar* devanagariFonts[] = {L"mangal", L"Nirmala UI", 0}; | 166 static const UChar* devanagariFonts[] = {L"mangal", L"Nirmala UI", 0}; |
167 static const UChar* gujaratiFonts[] = {L"shruti", L"Nirmala UI", 0}; | 167 static const UChar* gujaratiFonts[] = {L"shruti", L"Nirmala UI", 0}; |
168 static const UChar* bengaliFonts[] = {L"vrinda", L"Nirmala UI", 0}; | 168 static const UChar* bengaliFonts[] = {L"vrinda", L"Nirmala UI", 0}; |
169 static const UChar* teluguFonts[] = {L"gautami", L"Nirmala UI", 0}; | 169 static const UChar* teluguFonts[] = {L"gautami", L"Nirmala UI", 0}; |
170 static const UChar* tamilFonts[] = {L"latha", L"Nirmala UI", 0}; | 170 static const UChar* tamilFonts[] = {L"latha", L"Nirmala UI", 0}; |
171 static const UChar* kannadaFonts[] = {L"tunga", L"Nirmala UI", 0}; | 171 static const UChar* kannadaFonts[] = {L"tunga", L"Nirmala UI", 0}; |
172 static const UChar* gurumukhiFonts[] = {L"raavi", L"Nirmala UI", 0}; | 172 static const UChar* gurumukhiFonts[] = {L"raavi", L"Nirmala UI", 0}; |
173 static const UChar* thaiFonts[] = {L"tahoma", L"Leelawadee UI", L"Leelawadee
", 0}; | 173 static const UChar* thaiFonts[] = {L"tahoma", L"Leelawadee UI", L"Leelawadee
", 0}; |
174 static const UChar* hebrewFonts[] = {L"david", L"Segoe UI", 0}; | 174 static const UChar* hebrewFonts[] = {L"david", L"Segoe UI", 0}; |
175 static const UChar* arabicFonts[] = {L"tahoma", L"Segoe UI", 0}; | 175 static const UChar* arabicFonts[] = {L"tahoma", L"Segoe UI", 0}; |
| 176 static const UChar* tifinaghFonts[] = {L"ebrima", 0}; |
176 static const UChar* georgianFonts[] = {L"sylfaen", L"Segoe UI", 0}; | 177 static const UChar* georgianFonts[] = {L"sylfaen", L"Segoe UI", 0}; |
177 static const UChar* armenianFonts[] = {L"sylfaen", L"Segoe UI", 0}; | 178 static const UChar* armenianFonts[] = {L"sylfaen", L"Segoe UI", 0}; |
178 static const UChar* canadianAboriginalFonts[] = {L"euphemia", L"Gadugi", 0}; | 179 static const UChar* canadianAboriginalFonts[] = {L"euphemia", L"Gadugi", 0}; |
179 static const UChar* cherokeeFonts[] = {L"plantagenet cherokee", L"Gadugi", 0
}; | 180 static const UChar* cherokeeFonts[] = {L"plantagenet cherokee", L"Gadugi", 0
}; |
180 static const UChar* simplifiedHanFonts[] = {L"simsun", L"Microsoft YaHei", 0
}; | 181 static const UChar* simplifiedHanFonts[] = {L"simsun", L"Microsoft YaHei", 0
}; |
181 static const UChar* traditionalHanFonts[] = {L"pmingliu", L"Microsoft JhengH
ei", 0}; | 182 static const UChar* traditionalHanFonts[] = {L"pmingliu", L"Microsoft JhengH
ei", 0}; |
182 static const UChar* hiraganaFonts[] = {L"ms pgothic", L"Yu Gothic", L"Micros
oft YaHei", 0}; | 183 static const UChar* hiraganaFonts[] = {L"ms pgothic", L"Yu Gothic", L"Micros
oft YaHei", 0}; |
183 static const UChar* katakanaFonts[] = {L"ms pgothic", L"Yu Gothic", L"Micros
oft YaHei", 0}; | 184 static const UChar* katakanaFonts[] = {L"ms pgothic", L"Yu Gothic", L"Micros
oft YaHei", 0}; |
184 static const UChar* katakanaOrHiraganaFonts[] = {L"ms pgothic", L"Yu Gothic"
, L"Microsoft YaHei", 0}; | 185 static const UChar* katakanaOrHiraganaFonts[] = {L"ms pgothic", L"Yu Gothic"
, L"Microsoft YaHei", 0}; |
185 | 186 |
(...skipping 13 matching lines...) Expand all Loading... |
199 {USCRIPT_DEVANAGARI, devanagariFonts}, | 200 {USCRIPT_DEVANAGARI, devanagariFonts}, |
200 {USCRIPT_GUJARATI, gujaratiFonts}, | 201 {USCRIPT_GUJARATI, gujaratiFonts}, |
201 {USCRIPT_BENGALI, bengaliFonts}, | 202 {USCRIPT_BENGALI, bengaliFonts}, |
202 {USCRIPT_TELUGU, teluguFonts}, | 203 {USCRIPT_TELUGU, teluguFonts}, |
203 {USCRIPT_TAMIL, tamilFonts}, | 204 {USCRIPT_TAMIL, tamilFonts}, |
204 {USCRIPT_KANNADA, kannadaFonts}, | 205 {USCRIPT_KANNADA, kannadaFonts}, |
205 {USCRIPT_GURMUKHI, gurumukhiFonts}, | 206 {USCRIPT_GURMUKHI, gurumukhiFonts}, |
206 {USCRIPT_THAI, thaiFonts}, | 207 {USCRIPT_THAI, thaiFonts}, |
207 {USCRIPT_HEBREW, hebrewFonts}, | 208 {USCRIPT_HEBREW, hebrewFonts}, |
208 {USCRIPT_ARABIC, arabicFonts}, | 209 {USCRIPT_ARABIC, arabicFonts}, |
| 210 {USCRIPT_TIFINAGH, tifinaghFonts}, |
209 {USCRIPT_GEORGIAN, georgianFonts}, | 211 {USCRIPT_GEORGIAN, georgianFonts}, |
210 {USCRIPT_ARMENIAN, armenianFonts}, | 212 {USCRIPT_ARMENIAN, armenianFonts}, |
211 {USCRIPT_CANADIAN_ABORIGINAL, canadianAboriginalFonts}, | 213 {USCRIPT_CANADIAN_ABORIGINAL, canadianAboriginalFonts}, |
212 {USCRIPT_CHEROKEE, cherokeeFonts}, | 214 {USCRIPT_CHEROKEE, cherokeeFonts}, |
213 {USCRIPT_SIMPLIFIED_HAN, simplifiedHanFonts}, | 215 {USCRIPT_SIMPLIFIED_HAN, simplifiedHanFonts}, |
214 {USCRIPT_TRADITIONAL_HAN, traditionalHanFonts}, | 216 {USCRIPT_TRADITIONAL_HAN, traditionalHanFonts}, |
215 {USCRIPT_HIRAGANA, hiraganaFonts}, | 217 {USCRIPT_HIRAGANA, hiraganaFonts}, |
216 {USCRIPT_KATAKANA, katakanaFonts}, | 218 {USCRIPT_KATAKANA, katakanaFonts}, |
217 {USCRIPT_KATAKANA_OR_HIRAGANA, katakanaOrHiraganaFonts}, | 219 {USCRIPT_KATAKANA_OR_HIRAGANA, katakanaOrHiraganaFonts}, |
218 }; | 220 }; |
(...skipping 229 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 |