| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 initialized = true; | 276 initialized = true; |
| 277 } | 277 } |
| 278 | 278 |
| 279 UBlockCode block = ublock_getCode(ucs4); | 279 UBlockCode block = ublock_getCode(ucs4); |
| 280 switch (block) { | 280 switch (block) { |
| 281 case UBLOCK_EMOTICONS: | 281 case UBLOCK_EMOTICONS: |
| 282 return emojiFont; | 282 return emojiFont; |
| 283 case UBLOCK_PLAYING_CARDS: | 283 case UBLOCK_PLAYING_CARDS: |
| 284 case UBLOCK_MISCELLANEOUS_SYMBOLS: |
| 284 case UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS: | 285 case UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS: |
| 285 case UBLOCK_TRANSPORT_AND_MAP_SYMBOLS: | 286 case UBLOCK_TRANSPORT_AND_MAP_SYMBOLS: |
| 286 case UBLOCK_ALCHEMICAL_SYMBOLS: | 287 case UBLOCK_ALCHEMICAL_SYMBOLS: |
| 288 case UBLOCK_RUNIC: |
| 289 case UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS: |
| 290 case UBLOCK_DINGBATS: |
| 291 case UBLOCK_GENERAL_PUNCTUATION: |
| 287 return symbolFont; | 292 return symbolFont; |
| 288 default: | 293 default: |
| 289 return 0; | 294 return 0; |
| 290 }; | 295 }; |
| 291 } | 296 } |
| 292 | 297 |
| 293 } // namespace | 298 } // namespace |
| 294 | 299 |
| 295 // FIXME: this is font fallback code version 0.1 | 300 // FIXME: this is font fallback code version 0.1 |
| 296 // - Cover all the scripts | 301 // - Cover all the scripts |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 family = L"lucida sans unicode"; | 389 family = L"lucida sans unicode"; |
| 385 } | 390 } |
| 386 } | 391 } |
| 387 | 392 |
| 388 if (scriptChecked) | 393 if (scriptChecked) |
| 389 *scriptChecked = script; | 394 *scriptChecked = script; |
| 390 return family; | 395 return family; |
| 391 } | 396 } |
| 392 | 397 |
| 393 } // namespace blink | 398 } // namespace blink |
| OLD | NEW |