Re: Understanding <default> alias

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

 



# I forgot to Cc'ing the list. resending....

Hi,

Once building the pattern list for lookup, it won't be re-evaluated
for matching. thus, what you need to do for what you want to do is to
add the fallback fonts as you did for "myserif". it's the same logic
to how fontconfig deals with the virtual family names like sans-serif,
serif, monospace and so on.

On Wed, Feb 22, 2012 at 11:46 PM, Petr Gajdos <pgajdos@xxxxxxx> wrote:
> 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
>
>
> _______________________________________________
> Fontconfig mailing list
> Fontconfig@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>



-- 
Akira TAGOH
_______________________________________________
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