Understanding <default> alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpM3lY3SsCrg.pgp
Description: PGP signature

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux