Around 2 o'clock on Jan 22, Gioele Barabucci wrote:

> I'd also write <dir>/etc/X11/fonts/TTF</dir>...

Ok, now that I believe I can preserve whitespace in those spots, I've 
redone things as follows:

Keith Packard        XFree86 Core Team        Compaq Cambridge Research Lab
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>
<!-- 
        Find true type fonts in this directory 
-->
<dir>/usr/X11R6/lib/X11/fonts/truetype</dir>

<!--
        Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
<match target="pattern">
        <test qual="any" name="family"><string>mono</string></test>
        <edit name="family" mode="assign"><string>monospace</string></edit>
</match>

<!--
        Load per-user customization file
-->
<include ignore_missing="yes">~/.fonts.conf</include>

<!--
        Alias well known font names to available TrueType fonts
-->
<alias>
        <family>Times</family>
        <prefer><family>Times New Roman</family></prefer>
        <default><family>serif</family></default>
</alias>
<alias>
        <family>Helvetica</family>
        <prefer><family>Verdana</family></prefer>
        <default><family>sans</family></default>
</alias>
<alias>
        <family>Courier</family>
        <prefer><family>Courier New</family></prefer>
        <default><family>monospace</family></default>
</alias>

<!--
        Provide required aliases for standard names
-->
<alias>
        <family>serif</family>
        <prefer><family>Times New Roman</family></prefer>
</alias>
<alias>
        <family>sans</family>
        <prefer><family>Verdana</family></prefer>
</alias>
<alias>
        <family>monospace</family>
        <prefer><family>Andale Mono</family></prefer>
</alias>

</fontconfig>
<!-- This is the Document Type Definition for font configuration files -->
<!ELEMENT fontconfig (dir | 
                      cache | 
                      include | 
                      include_if | 
                      match | 
                      alias)* >

<!-- 
    Add a directory that provides fonts
-->
<!ELEMENT dir (#PCDATA)>
<!ATTLIST dir xml:space (default|preserve) 'preserve'>

<!--
    Define the per-user file that holds cache font information.

    If the filename begins with '~', it is replaced with the users
    home directory path.
-->
<!ELEMENT cache (#PCDATA)>
<!ATTLIST cache xml:space (default|preserve) 'preserve'>

<!--
    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"
          xml:space         (default|preserve)  "preserve">

<!--
    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>
-->
<!ELEMENT alias (family, prefer?, accept?, default?)>
<!ELEMENT prefer (family)*>
<!ELEMENT accept (family)*>
<!ELEMENT default (family)*>
<!ELEMENT family (#PCDATA)>
<!ATTLIST family xml:space (default|preserve) 'preserve'>

<!ENTITY % expr 
'number|string|name|matrix|boolean_or|boolean_and|eq|not_eq|less|less_eq|more|more_eq|plus|minus|times|divide|not|if'>

<!--
    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.
-->
<!ELEMENT match (test*, edit*)>
<!ATTLIST match
          target (pattern|font) "pattern">

<!--
    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.
-->
<!ELEMENT test (%expr;)>
<!ATTLIST test 
          qual (any|all)    "any"
          name CDATA        #REQUIRED
          compare (eq|not_eq|less|less_eq|more|more_eq) "eq">

<!--
    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
          mode (assign|assign_replace|prepend|append|prepend_first|append_last) 
"assign">

<!--
    Elements of expressions follow
-->
<!ELEMENT number (#PCDATA)>
<!ATTLIST number xml:space (default|preserve) 'preserve'>
<!ELEMENT string (#PCDATA)>
<!ATTLIST string xml:space (default|preserve) 'preserve'>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name xml:space (default|preserve) 'preserve'>
<!ELEMENT matrix (number,number,number,number)>
<!ELEMENT boolean_or (%expr;)*>
<!ELEMENT boolean_and (%expr;)*>
<!ELEMENT eq (%expr;)*>
<!ELEMENT not_eq (%expr;)*>
<!ELEMENT less (%expr;)*>
<!ELEMENT less_eq (%expr;)*>
<!ELEMENT more (%expr;)*>
<!ELEMENT more_eq (%expr;)*>
<!ELEMENT plus (%expr;)*>
<!ELEMENT minus (%expr;)*>
<!ELEMENT times (%expr;)*>
<!ELEMENT divide (%expr;)*>
<!ELEMENT not (%expr;)>
<!ELEMENT if ((%expr;), (%expr;), (%expr;)?)>

Reply via email to