Chet Haase | c8f060c | 2011-07-06 11:17:26 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Fallback Fonts |
| 4 | |
| 5 | This file specifies the fonts, and the priority order, that will be searched for any |
| 6 | glyphs not handled by the default fonts specified in /system/etc/system_fonts.xml. |
| 7 | Each entry consists of a family tag and a list of files (file names) which support that |
| 8 | family. The fonts for each family are listed in the order of the styles that they |
| 9 | handle (the order is: regular, bold, italic, and bold-italic). The order in which the |
| 10 | families are listed in this file represents the order in which these fallback fonts |
| 11 | will be searched for glyphs that are not supported by the default system fonts (which are |
| 12 | found in /system/etc/system_fonts.xml). |
| 13 | |
| 14 | Note that there is not nameset for fallback fonts, unlike the fonts specified in |
| 15 | system_fonts.xml. The ability to support specific names in fallback fonts may be supported |
| 16 | in the future. For now, the lack of files entries here is an indicator to the system that |
| 17 | these are fallback fonts, instead of default named system fonts. |
| 18 | |
| 19 | There is another optional file in /vendor/etc/fallback_fonts.xml. That file can be used to |
| 20 | provide references to other font families that should be used in addition to the default |
| 21 | fallback fonts. That file can also specify the order in which the fallback fonts should be |
| 22 | searched, to ensure that a vendor-provided font will be used before another fallback font |
| 23 | which happens to handle the same glyph. |
Russell Brenner | 2b4b35c | 2012-03-08 10:25:17 -0800 | [diff] [blame] | 24 | |
| 25 | Han languages (Chinese, Japanese, and Korean) share a common range of unicode characters; |
| 26 | their ordering in the fallback or vendor files gives priority to the first in the list. |
Billy Hewlett | ac1cbaf | 2012-07-18 09:51:45 -0700 | [diff] [blame] | 27 | Language-specific ordering can be configured by adding a BCP 47-style "lang" attribute to |
| 28 | a "file" element; fonts matching the language of text being drawn will be prioritised over |
| 29 | all others. |
Chet Haase | c8f060c | 2011-07-06 11:17:26 -0700 | [diff] [blame] | 30 | --> |
| 31 | <familyset> |
| 32 | <family> |
| 33 | <fileset> |
Billy Hewlett | 973835b | 2012-06-21 09:57:57 -0700 | [diff] [blame] | 34 | <file variant="elegant">DroidNaskh-Regular.ttf</file> |
| 35 | </fileset> |
| 36 | </family> |
| 37 | <family> |
| 38 | <fileset> |
| 39 | <file variant="compact">DroidNaskh-Regular-SystemUI.ttf</file> |
Chet Haase | c8f060c | 2011-07-06 11:17:26 -0700 | [diff] [blame] | 40 | </fileset> |
| 41 | </family> |
| 42 | <family> |
| 43 | <fileset> |
Russell Brenner | 359d052 | 2011-07-19 10:42:46 -0700 | [diff] [blame] | 44 | <file>DroidSansEthiopic-Regular.ttf</file> |
| 45 | </fileset> |
| 46 | </family> |
| 47 | <family> |
| 48 | <fileset> |
Chet Haase | c8f060c | 2011-07-06 11:17:26 -0700 | [diff] [blame] | 49 | <file>DroidSansHebrew-Regular.ttf</file> |
| 50 | <file>DroidSansHebrew-Bold.ttf</file> |
| 51 | </fileset> |
| 52 | </family> |
| 53 | <family> |
| 54 | <fileset> |
| 55 | <file>DroidSansThai.ttf</file> |
| 56 | </fileset> |
| 57 | </family> |
| 58 | <family> |
| 59 | <fileset> |
Russell Brenner | e8a7a72 | 2011-09-01 14:12:47 -0700 | [diff] [blame] | 60 | <file>DroidSansArmenian.ttf</file> |
| 61 | </fileset> |
| 62 | </family> |
| 63 | <family> |
| 64 | <fileset> |
| 65 | <file>DroidSansGeorgian.ttf</file> |
| 66 | </fileset> |
| 67 | </family> |
| 68 | <family> |
| 69 | <fileset> |
Victoria Lease | bd1844d | 2012-04-26 11:18:40 -0700 | [diff] [blame] | 70 | <file>DroidSansDevanagari-Regular.ttf</file> |
Russell Brenner | 36de369 | 2011-07-27 17:36:11 -0700 | [diff] [blame] | 71 | </fileset> |
| 72 | </family> |
| 73 | <family> |
| 74 | <fileset> |
Victoria Lease | c24de46 | 2012-05-08 11:01:09 -0700 | [diff] [blame] | 75 | <file>DroidSansTamil-Regular.ttf</file> |
| 76 | <file>DroidSansTamil-Bold.ttf</file> |
Raph Levien | d26e18b | 2012-05-14 13:11:57 -0700 | [diff] [blame] | 77 | </fileset> |
Victoria Lease | c24de46 | 2012-05-08 11:01:09 -0700 | [diff] [blame] | 78 | </family> |
| 79 | <family> |
| 80 | <fileset> |
| 81 | <file>AnjaliNewLipi-light.ttf</file> |
| 82 | </fileset> |
| 83 | </family> |
| 84 | <family> |
| 85 | <fileset> |
Bart Sears | 57e0855 | 2011-10-26 17:06:23 -0700 | [diff] [blame] | 86 | <file>Lohit-Bengali.ttf</file> |
| 87 | </fileset> |
| 88 | </family> |
| 89 | <family> |
| 90 | <fileset> |
Victoria Lease | c24de46 | 2012-05-08 11:01:09 -0700 | [diff] [blame] | 91 | <file>Lohit-Kannada.ttf</file> |
| 92 | </fileset> |
| 93 | </family> |
| 94 | <family> |
| 95 | <fileset> |
Bart Sears | 562c45c | 2012-09-24 00:32:57 -0700 | [diff] [blame] | 96 | <file>NanumGothic.ttf</file> |
| 97 | </fileset> |
| 98 | </family> |
| 99 | <family> |
| 100 | <fileset> |
Bart Sears | e60bae1 | 2011-12-11 18:21:56 -0800 | [diff] [blame] | 101 | <file>AndroidEmoji.ttf</file> |
| 102 | </fileset> |
| 103 | </family> |
| 104 | <family> |
| 105 | <fileset> |
Raph Levien | ab815a7 | 2012-12-04 14:02:43 -0800 | [diff] [blame] | 106 | <file>Lohit-Telugu.ttf</file> |
| 107 | </fileset> |
| 108 | </family> |
| 109 | <family> |
| 110 | <fileset> |
Chet Haase | c8f060c | 2011-07-06 11:17:26 -0700 | [diff] [blame] | 111 | <file>DroidSansFallback.ttf</file> |
| 112 | </fileset> |
| 113 | </family> |
Russell Brenner | 1c097a9 | 2012-03-28 09:45:27 -0700 | [diff] [blame] | 114 | <family> |
| 115 | <fileset> |
Billy Hewlett | ac1cbaf | 2012-07-18 09:51:45 -0700 | [diff] [blame] | 116 | <file lang="ja">MTLmr3m.ttf</file> |
Russell Brenner | 1c097a9 | 2012-03-28 09:45:27 -0700 | [diff] [blame] | 117 | </fileset> |
| 118 | </family> |
Raph Levien | ab815a7 | 2012-12-04 14:02:43 -0800 | [diff] [blame] | 119 | <!-- Note: complex scripts (i.e. those requiring shaping in Harfbuzz) have |
| 120 | a cumulative limit of 64k glyphs. Thus, if they are placed after the |
| 121 | large fonts such as DroidSansFallback, they are likely to render |
| 122 | incorrectly. Please use caution when putting fonts toward the end of |
| 123 | the list. |
Victoria Lease | 2a41a2d | 2012-07-17 16:41:18 -0700 | [diff] [blame] | 124 | --> |
Chet Haase | c8f060c | 2011-07-06 11:17:26 -0700 | [diff] [blame] | 125 | </familyset> |