Re: fc-match and fc-match --sort disagree

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

 



Satya Narayan Mishra <snmishra@xxxxxxxxxx> さんは書きました:

> Hi 
>
> I am new to fontconfig and don't know how all the innards work. I tried 
> to look in the docs, but didn't come up with anything.
>
> When I run fc-match Symbol I get Vera.ttf: "Bitstream Vera Sans" "Roman"
> When I run fc-match --sort Symbol | head -1 I get: 
> opens___.ttf: "OpenSymbol" "Regular"
>
> I, of course, want the second to be used in the applications.
>
> I have in /etc/fonts/local.conf .
> <alias>
>   <family>Symbol</family>
>   <prefer>
>       <family>OpenSymbol</family>
>       <family>Standard Symbols L</family>
>   </prefer>
> </alias>
>
>
> I would appreciate any help.

You can use this:

        <match target="pattern">
                <test name="family">
                        <string>symbol</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>OpenSymbol</string>
                </edit>
                <edit name="family" mode="append" binding="strong">
                        <string>Standard Symbols L</string>
                </edit>
        </match>


-- 
Mike FABIAN   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

_______________________________________________
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