[Fontconfig] Understanding <default> alias
Petr Gajdos
pgajdos at suse.cz
Wed Feb 22 06:46:33 PST 2012
Hi list,
only as example to figure out how fontconfig's
<alias><family>...</family><default>...</default></alias>
works, I put myself into following situation:
I have installed (on changeroot) Droid fonts, Liberation
fonts and STIXGeneral fonts, no other fonts.
I emptyed all configuration, but I added:
<alias binding="same">
<family>myserif</family>
<accept>
<family>DejaVu Serif</family>
<family>STIXGeneral</family>
<family>Droid Serif</family>
<family>Liberation Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Droid Serif</family>
<default><family>myserif</family></default>
</alias>
<alias binding="same">
<family>DejaVu Serif</family>
<default><family>myserif</family></default>
</alias>
<alias binding="same">
<family>Liberation Serif</family>
<default><family>myserif</family></default>
</alias>
<alias binding="same">
<family>STIXGeneral</family>
<default><family>myserif</family></default>
</alias>
I wanted to have all Serif fonts grouped together in myserif and
whenever any of them that is not installed (DejaVu Serif in this case)
is requested, fc-match would return first available from
<accept></accept> block of myserif alias. (I wanted to somewhat
simplify the situation in 30-metric-aliases.conf.)
But it seems that I either misunderstand <default></default> purpose
or I do other thing wrong: fc-match "myserif" returns STIXGeneral as
expected, but fc-match "DejaVu Serif" returns
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
What I am missing? What's the exact meaning of <default> alias?
Any help is appreciated!
Petr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120222/b3875f2f/attachment.pgp>
More information about the Fontconfig
mailing list