2002-02-15 00:34:13 +01:00
|
|
|
<!-- This is the Document Type Definition for font configuration files -->
|
2018-11-15 12:55:08 +01:00
|
|
|
<!ELEMENT fontconfig (alias |
|
2002-02-15 00:34:13 +01:00
|
|
|
cache |
|
2006-09-10 06:29:08 +02:00
|
|
|
cachedir |
|
2002-02-15 00:34:13 +01:00
|
|
|
config |
|
2018-11-15 12:55:08 +01:00
|
|
|
description |
|
|
|
|
dir |
|
|
|
|
include |
|
|
|
|
match |
|
|
|
|
selectfont)* >
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Add a directory that provides fonts
|
|
|
|
-->
|
|
|
|
<!ELEMENT dir (#PCDATA)>
|
2012-03-12 11:18:19 +01:00
|
|
|
<!ATTLIST dir
|
2018-10-04 10:02:18 +02:00
|
|
|
prefix (default|xdg|relative|cwd) "default"
|
|
|
|
xml:space (default|preserve) 'preserve'>
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Define the per-user file that holds cache font information.
|
|
|
|
|
|
|
|
If the filename begins with '~', it is replaced with the users
|
|
|
|
home directory path.
|
2018-10-04 10:02:18 +02:00
|
|
|
|
|
|
|
If 'prefix' is 'default' or 'cwd', then the current working directory will be added prior to the value.
|
|
|
|
If 'prefix' is 'xdg', then the value in the $XDG_DATA_HOME will be added prior to the value.
|
|
|
|
If 'prefix' is 'relative', then the path of curent file will be added prior to the value.
|
2002-02-15 00:34:13 +01:00
|
|
|
-->
|
|
|
|
<!ELEMENT cache (#PCDATA)>
|
|
|
|
<!ATTLIST cache xml:space (default|preserve) 'preserve'>
|
|
|
|
|
2006-08-04 18:13:00 +02:00
|
|
|
<!--
|
|
|
|
Add a directory that is searched for font cache files.
|
|
|
|
These hold per-directory cache data and are searched in
|
|
|
|
order for each directory. When writing cache files, the first
|
|
|
|
directory which allows the cache file to be created is used.
|
|
|
|
|
|
|
|
A leading '~' in a directory name is replaced with the users
|
|
|
|
home directory path.
|
|
|
|
-->
|
|
|
|
<!ELEMENT cachedir (#PCDATA)>
|
2012-03-12 11:18:19 +01:00
|
|
|
<!ATTLIST cachedir
|
2012-10-09 04:05:59 +02:00
|
|
|
prefix CDATA "default"
|
2012-03-12 11:18:19 +01:00
|
|
|
xml:space (default|preserve) 'preserve'>
|
2006-08-04 18:13:00 +02:00
|
|
|
|
2018-11-15 12:55:08 +01:00
|
|
|
<!--
|
|
|
|
Set a string as a description for the targeted config file
|
|
|
|
|
|
|
|
Set 'domain' to change where to pull translations from.
|
|
|
|
This will be done through gettext.
|
|
|
|
-->
|
|
|
|
<!ELEMENT description (#PCDATA)>
|
|
|
|
<!ATTLIST description
|
|
|
|
domain CDATA "fontconfig-conf">
|
|
|
|
|
2002-02-15 00:34:13 +01:00
|
|
|
<!--
|
|
|
|
Reference another configuration file; note that this
|
|
|
|
is another complete font configuration file and not
|
|
|
|
just a file included by the XML parser.
|
|
|
|
|
|
|
|
Set 'ignore_missing' to 'yes' if errors are to be ignored.
|
|
|
|
|
|
|
|
If the filename begins with '~', it is replaced with the users
|
|
|
|
home directory path.
|
|
|
|
-->
|
|
|
|
<!ELEMENT include (#PCDATA)>
|
|
|
|
<!ATTLIST include
|
|
|
|
ignore_missing (no|yes) "no"
|
2012-10-09 04:05:59 +02:00
|
|
|
prefix CDATA "default"
|
|
|
|
deprecated (yes|no) "no"
|
2002-02-15 00:34:13 +01:00
|
|
|
xml:space (default|preserve) "preserve">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Global library configuration data
|
|
|
|
-->
|
2002-05-23 18:05:16 +02:00
|
|
|
<!ELEMENT config (blank|rescan)*>
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Specify the set of Unicode encoding values which
|
|
|
|
represent glyphs that are allowed to contain no
|
|
|
|
data. With this list, fontconfig can examine
|
|
|
|
fonts for broken glyphs and eliminate them from
|
|
|
|
the set of valid Unicode chars. This idea
|
|
|
|
was borrowed from Mozilla
|
|
|
|
-->
|
2010-12-28 09:52:06 +01:00
|
|
|
<!ELEMENT blank (int|range)*>
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Aliases are just a special case for multiple match elements
|
|
|
|
|
|
|
|
They are syntactically equivalent to:
|
|
|
|
|
|
|
|
<match>
|
|
|
|
<test name="family">
|
|
|
|
<string value=[family]/>
|
|
|
|
</test>
|
|
|
|
<edit name="family" mode="prepend">
|
|
|
|
<string value=[prefer]/>
|
|
|
|
...
|
|
|
|
</edit>
|
|
|
|
<edit name="family" mode="append">
|
|
|
|
<string value=[accept]/>
|
|
|
|
...
|
|
|
|
</edit>
|
|
|
|
<edit name="family" mode="append_last">
|
|
|
|
<string value=[default]/>
|
|
|
|
...
|
|
|
|
</edit>
|
|
|
|
</match>
|
|
|
|
-->
|
2002-05-21 19:08:42 +02:00
|
|
|
<!--
|
|
|
|
Periodically rescan the font configuration and
|
|
|
|
directories to synch internal state with filesystem
|
|
|
|
-->
|
|
|
|
<!ELEMENT rescan (int)>
|
|
|
|
|
2004-12-04 20:41:10 +01:00
|
|
|
<!--
|
|
|
|
Edit list of available fonts at startup/reload time
|
|
|
|
-->
|
|
|
|
<!ELEMENT selectfont (rejectfont | acceptfont)* >
|
|
|
|
|
|
|
|
<!ELEMENT rejectfont (glob | pattern)*>
|
|
|
|
|
|
|
|
<!ELEMENT acceptfont (glob | pattern)*>
|
|
|
|
|
|
|
|
<!ELEMENT glob (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT pattern (patelt)*>
|
|
|
|
|
2010-12-06 04:38:18 +01:00
|
|
|
<!ENTITY % constant 'int|double|string|matrix|bool|charset|langset|const'>
|
2006-09-10 06:29:08 +02:00
|
|
|
|
|
|
|
<!ELEMENT patelt (%constant;)*>
|
2004-12-04 20:41:10 +01:00
|
|
|
<!ATTLIST patelt
|
|
|
|
name CDATA #REQUIRED>
|
|
|
|
|
2012-04-04 07:47:57 +02:00
|
|
|
<!ELEMENT alias (test?, family*, prefer?, accept?, default?)>
|
2007-10-26 07:30:49 +02:00
|
|
|
<!ATTLIST alias
|
|
|
|
binding (weak|strong|same) "weak">
|
2002-02-15 00:34:13 +01:00
|
|
|
<!ELEMENT prefer (family)*>
|
|
|
|
<!ELEMENT accept (family)*>
|
|
|
|
<!ELEMENT default (family)*>
|
|
|
|
<!ELEMENT family (#PCDATA)>
|
|
|
|
<!ATTLIST family xml:space (default|preserve) 'preserve'>
|
|
|
|
|
2010-12-06 04:38:18 +01:00
|
|
|
<!ENTITY % expr 'int|double|string|matrix|bool|charset|langset
|
2002-02-15 00:34:13 +01:00
|
|
|
|name|const
|
2002-08-22 20:53:22 +02:00
|
|
|
|or|and|eq|not_eq|less|less_eq|more|more_eq|contains|not_contains
|
2003-04-16 01:38:06 +02:00
|
|
|
|plus|minus|times|divide|not|if|floor|ceil|round|trunc'>
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Match and edit patterns.
|
|
|
|
|
|
|
|
If 'target' is 'pattern', execute the match before selecting a font.
|
|
|
|
if 'target' is 'font', execute the match on the result of a font
|
|
|
|
selection.
|
|
|
|
-->
|
2013-10-31 14:12:26 +01:00
|
|
|
<!ELEMENT match (test|edit)+>
|
2002-02-15 00:34:13 +01:00
|
|
|
<!ATTLIST match
|
2006-09-03 02:52:12 +02:00
|
|
|
target (pattern|font|scan) "pattern">
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Match a field in a pattern
|
|
|
|
|
|
|
|
if 'qual' is 'any', then the match succeeds if any value in the field matches.
|
|
|
|
if 'qual' is 'all', then the match succeeds only if all values match.
|
2002-06-19 22:08:22 +02:00
|
|
|
if 'qual' is 'first', then the match succeeds only if the first value matches.
|
|
|
|
if 'qual' is 'not_first', then the match succeeds only if any value other than
|
|
|
|
the first matches.
|
2002-08-11 20:11:04 +02:00
|
|
|
For match elements with target=font, if test 'target' is 'pattern',
|
|
|
|
then the test is applied to the pattern used in matching rather than
|
|
|
|
to the resulting font.
|
2006-09-03 02:52:12 +02:00
|
|
|
|
|
|
|
Match elements with target=scan are applied as fonts are scanned.
|
|
|
|
They edit the pattern generated from the scanned font and affect
|
|
|
|
what the fontconfig database contains.
|
2002-02-15 00:34:13 +01:00
|
|
|
-->
|
2002-05-21 19:08:42 +02:00
|
|
|
<!ELEMENT test (%expr;)*>
|
2002-02-15 00:34:13 +01:00
|
|
|
<!ATTLIST test
|
2002-06-19 22:08:22 +02:00
|
|
|
qual (any|all|first|not_first) "any"
|
2002-02-15 00:34:13 +01:00
|
|
|
name CDATA #REQUIRED
|
2002-08-11 20:11:04 +02:00
|
|
|
target (pattern|font|default) "default"
|
2012-10-09 04:05:59 +02:00
|
|
|
ignore-blanks (true|false) "false"
|
2002-08-22 20:53:22 +02:00
|
|
|
compare (eq|not_eq|less|less_eq|more|more_eq|contains|not_contains) "eq">
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Edit a field in a pattern
|
|
|
|
|
|
|
|
The enclosed values are used together to edit the list of values
|
|
|
|
associated with 'name'.
|
|
|
|
|
|
|
|
If 'name' matches one of those used in a test element for this match element:
|
|
|
|
if 'mode' is 'assign', replace the matched value.
|
|
|
|
if 'mode' is 'assign_replace', replace all of the values
|
|
|
|
if 'mode' is 'prepend', insert before the matched value
|
|
|
|
if 'mode' is 'append', insert after the matched value
|
|
|
|
if 'mode' is 'prepend_first', insert before all of the values
|
|
|
|
if 'mode' is 'append_last', insert after all of the values
|
|
|
|
If 'name' doesn't match any of those used in a test element:
|
|
|
|
if 'mode' is 'assign' or 'assign_replace, replace all of the values
|
|
|
|
if 'mode' is 'prepend' or 'prepend_first', insert before all of the values
|
|
|
|
if 'mode' is 'append' or 'append_last', insert after all of the values
|
|
|
|
-->
|
|
|
|
<!ELEMENT edit (%expr;)*>
|
|
|
|
<!ATTLIST edit
|
|
|
|
name CDATA #REQUIRED
|
2013-01-29 12:19:36 +01:00
|
|
|
mode (assign|assign_replace|prepend|append|prepend_first|append_last|delete|delete_all) "assign"
|
2003-02-12 19:22:12 +01:00
|
|
|
binding (weak|strong|same) "weak">
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Elements of expressions follow
|
|
|
|
-->
|
|
|
|
<!ELEMENT int (#PCDATA)>
|
|
|
|
<!ATTLIST int xml:space (default|preserve) 'preserve'>
|
|
|
|
<!ELEMENT double (#PCDATA)>
|
|
|
|
<!ATTLIST double xml:space (default|preserve) 'preserve'>
|
|
|
|
<!ELEMENT string (#PCDATA)>
|
|
|
|
<!ATTLIST string xml:space (default|preserve) 'preserve'>
|
2012-12-30 03:39:06 +01:00
|
|
|
<!ELEMENT matrix ((%expr;), (%expr;), (%expr;), (%expr;))>
|
2003-04-16 18:18:27 +02:00
|
|
|
<!ELEMENT bool (#PCDATA)>
|
2010-12-06 04:10:17 +01:00
|
|
|
<!ELEMENT charset (int|range)*>
|
|
|
|
<!ELEMENT range (int,int)>
|
2010-12-06 04:38:18 +01:00
|
|
|
<!ELEMENT langset (string)*>
|
2002-02-15 00:34:13 +01:00
|
|
|
<!ELEMENT name (#PCDATA)>
|
2012-12-30 05:58:38 +01:00
|
|
|
<!ATTLIST name xml:space (default|preserve) 'preserve'
|
|
|
|
target (default|font|pattern) 'default'>
|
2002-02-15 00:34:13 +01:00
|
|
|
<!ELEMENT const (#PCDATA)>
|
|
|
|
<!ATTLIST const xml:space (default|preserve) 'preserve'>
|
|
|
|
<!ELEMENT or (%expr;)*>
|
|
|
|
<!ELEMENT and (%expr;)*>
|
|
|
|
<!ELEMENT eq ((%expr;), (%expr;))>
|
|
|
|
<!ELEMENT not_eq ((%expr;), (%expr;))>
|
|
|
|
<!ELEMENT less ((%expr;), (%expr;))>
|
|
|
|
<!ELEMENT less_eq ((%expr;), (%expr;))>
|
|
|
|
<!ELEMENT more ((%expr;), (%expr;))>
|
|
|
|
<!ELEMENT more_eq ((%expr;), (%expr;))>
|
2002-08-22 20:53:22 +02:00
|
|
|
<!ELEMENT contains ((%expr;), (%expr;))>
|
|
|
|
<!ELEMENT not_contains ((%expr;), (%expr;))>
|
2002-02-15 00:34:13 +01:00
|
|
|
<!ELEMENT plus (%expr;)*>
|
|
|
|
<!ELEMENT minus (%expr;)*>
|
|
|
|
<!ELEMENT times (%expr;)*>
|
|
|
|
<!ELEMENT divide (%expr;)*>
|
|
|
|
<!ELEMENT not (%expr;)>
|
|
|
|
<!ELEMENT if ((%expr;), (%expr;), (%expr;))>
|
2003-04-16 01:38:06 +02:00
|
|
|
<!ELEMENT floor (%expr;)>
|
|
|
|
<!ELEMENT ceil (%expr;)>
|
|
|
|
<!ELEMENT round (%expr;)>
|
|
|
|
<!ELEMENT trunc (%expr;)>
|