You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

225 lines
6.8 KiB

  1. <!-- This is the Document Type Definition for font configuration files -->
  2. <!ELEMENT fontconfig (dir |
  3. cache |
  4. cachedir |
  5. include |
  6. config |
  7. selectfont |
  8. match |
  9. alias)* >
  10. <!--
  11. Add a directory that provides fonts
  12. -->
  13. <!ELEMENT dir (#PCDATA)>
  14. <!ATTLIST dir xml:space (default|preserve) 'preserve'>
  15. <!--
  16. Define the per-user file that holds cache font information.
  17. If the filename begins with '~', it is replaced with the users
  18. home directory path.
  19. -->
  20. <!ELEMENT cache (#PCDATA)>
  21. <!ATTLIST cache xml:space (default|preserve) 'preserve'>
  22. <!--
  23. Add a directory that is searched for font cache files.
  24. These hold per-directory cache data and are searched in
  25. order for each directory. When writing cache files, the first
  26. directory which allows the cache file to be created is used.
  27. A leading '~' in a directory name is replaced with the users
  28. home directory path.
  29. -->
  30. <!ELEMENT cachedir (#PCDATA)>
  31. <!ATTLIST cachedir xml:space (default|preserve) 'preserve'>
  32. <!--
  33. Reference another configuration file; note that this
  34. is another complete font configuration file and not
  35. just a file included by the XML parser.
  36. Set 'ignore_missing' to 'yes' if errors are to be ignored.
  37. If the filename begins with '~', it is replaced with the users
  38. home directory path.
  39. -->
  40. <!ELEMENT include (#PCDATA)>
  41. <!ATTLIST include
  42. ignore_missing (no|yes) "no"
  43. xml:space (default|preserve) "preserve">
  44. <!--
  45. Global library configuration data
  46. -->
  47. <!ELEMENT config (blank|rescan)*>
  48. <!--
  49. Specify the set of Unicode encoding values which
  50. represent glyphs that are allowed to contain no
  51. data. With this list, fontconfig can examine
  52. fonts for broken glyphs and eliminate them from
  53. the set of valid Unicode chars. This idea
  54. was borrowed from Mozilla
  55. -->
  56. <!ELEMENT blank (int)*>
  57. <!--
  58. Aliases are just a special case for multiple match elements
  59. They are syntactically equivalent to:
  60. <match>
  61. <test name="family">
  62. <string value=[family]/>
  63. </test>
  64. <edit name="family" mode="prepend">
  65. <string value=[prefer]/>
  66. ...
  67. </edit>
  68. <edit name="family" mode="append">
  69. <string value=[accept]/>
  70. ...
  71. </edit>
  72. <edit name="family" mode="append_last">
  73. <string value=[default]/>
  74. ...
  75. </edit>
  76. </match>
  77. -->
  78. <!--
  79. Periodically rescan the font configuration and
  80. directories to synch internal state with filesystem
  81. -->
  82. <!ELEMENT rescan (int)>
  83. <!--
  84. Edit list of available fonts at startup/reload time
  85. -->
  86. <!ELEMENT selectfont (rejectfont | acceptfont)* >
  87. <!ELEMENT rejectfont (glob | pattern)*>
  88. <!ELEMENT acceptfont (glob | pattern)*>
  89. <!ELEMENT glob (#PCDATA)>
  90. <!ELEMENT pattern (patelt)*>
  91. <!ENTITY % constant 'int|double|string|matrix|bool|charset|const'>
  92. <!ELEMENT patelt (%constant;)*>
  93. <!ATTLIST patelt
  94. name CDATA #REQUIRED>
  95. <!ELEMENT alias (family*, prefer?, accept?, default?)>
  96. <!ATTLIST alias
  97. binding (weak|strong|same) "weak">
  98. <!ELEMENT prefer (family)*>
  99. <!ELEMENT accept (family)*>
  100. <!ELEMENT default (family)*>
  101. <!ELEMENT family (#PCDATA)>
  102. <!ATTLIST family xml:space (default|preserve) 'preserve'>
  103. <!ENTITY % expr 'int|double|string|matrix|bool|charset
  104. |name|const
  105. |or|and|eq|not_eq|less|less_eq|more|more_eq|contains|not_contains
  106. |plus|minus|times|divide|not|if|floor|ceil|round|trunc'>
  107. <!--
  108. Match and edit patterns.
  109. If 'target' is 'pattern', execute the match before selecting a font.
  110. if 'target' is 'font', execute the match on the result of a font
  111. selection.
  112. -->
  113. <!ELEMENT match (test*, edit*)>
  114. <!ATTLIST match
  115. target (pattern|font|scan) "pattern">
  116. <!--
  117. Match a field in a pattern
  118. if 'qual' is 'any', then the match succeeds if any value in the field matches.
  119. if 'qual' is 'all', then the match succeeds only if all values match.
  120. if 'qual' is 'first', then the match succeeds only if the first value matches.
  121. if 'qual' is 'not_first', then the match succeeds only if any value other than
  122. the first matches.
  123. For match elements with target=font, if test 'target' is 'pattern',
  124. then the test is applied to the pattern used in matching rather than
  125. to the resulting font.
  126. Match elements with target=scan are applied as fonts are scanned.
  127. They edit the pattern generated from the scanned font and affect
  128. what the fontconfig database contains.
  129. -->
  130. <!ELEMENT test (%expr;)*>
  131. <!ATTLIST test
  132. qual (any|all|first|not_first) "any"
  133. name CDATA #REQUIRED
  134. target (pattern|font|default) "default"
  135. compare (eq|not_eq|less|less_eq|more|more_eq|contains|not_contains) "eq">
  136. <!--
  137. Edit a field in a pattern
  138. The enclosed values are used together to edit the list of values
  139. associated with 'name'.
  140. If 'name' matches one of those used in a test element for this match element:
  141. if 'mode' is 'assign', replace the matched value.
  142. if 'mode' is 'assign_replace', replace all of the values
  143. if 'mode' is 'prepend', insert before the matched value
  144. if 'mode' is 'append', insert after the matched value
  145. if 'mode' is 'prepend_first', insert before all of the values
  146. if 'mode' is 'append_last', insert after all of the values
  147. If 'name' doesn't match any of those used in a test element:
  148. if 'mode' is 'assign' or 'assign_replace, replace all of the values
  149. if 'mode' is 'prepend' or 'prepend_first', insert before all of the values
  150. if 'mode' is 'append' or 'append_last', insert after all of the values
  151. -->
  152. <!ELEMENT edit (%expr;)*>
  153. <!ATTLIST edit
  154. name CDATA #REQUIRED
  155. mode (assign|assign_replace|prepend|append|prepend_first|append_last) "assign"
  156. binding (weak|strong|same) "weak">
  157. <!--
  158. Elements of expressions follow
  159. -->
  160. <!ELEMENT int (#PCDATA)>
  161. <!ATTLIST int xml:space (default|preserve) 'preserve'>
  162. <!ELEMENT double (#PCDATA)>
  163. <!ATTLIST double xml:space (default|preserve) 'preserve'>
  164. <!ELEMENT string (#PCDATA)>
  165. <!ATTLIST string xml:space (default|preserve) 'preserve'>
  166. <!ELEMENT matrix (double,double,double,double)>
  167. <!ELEMENT bool (#PCDATA)>
  168. <!ELEMENT charset (#PCDATA)>
  169. <!ATTLIST charset xml:space (default|preserve) 'preserve'>
  170. <!ELEMENT name (#PCDATA)>
  171. <!ATTLIST name xml:space (default|preserve) 'preserve'>
  172. <!ELEMENT const (#PCDATA)>
  173. <!ATTLIST const xml:space (default|preserve) 'preserve'>
  174. <!ELEMENT or (%expr;)*>
  175. <!ELEMENT and (%expr;)*>
  176. <!ELEMENT eq ((%expr;), (%expr;))>
  177. <!ELEMENT not_eq ((%expr;), (%expr;))>
  178. <!ELEMENT less ((%expr;), (%expr;))>
  179. <!ELEMENT less_eq ((%expr;), (%expr;))>
  180. <!ELEMENT more ((%expr;), (%expr;))>
  181. <!ELEMENT more_eq ((%expr;), (%expr;))>
  182. <!ELEMENT contains ((%expr;), (%expr;))>
  183. <!ELEMENT not_contains ((%expr;), (%expr;))>
  184. <!ELEMENT plus (%expr;)*>
  185. <!ELEMENT minus (%expr;)*>
  186. <!ELEMENT times (%expr;)*>
  187. <!ELEMENT divide (%expr;)*>
  188. <!ELEMENT not (%expr;)>
  189. <!ELEMENT if ((%expr;), (%expr;), (%expr;))>
  190. <!ELEMENT floor (%expr;)>
  191. <!ELEMENT ceil (%expr;)>
  192. <!ELEMENT round (%expr;)>
  193. <!ELEMENT trunc (%expr;)>