Re: fonts.conf: specify different pixelsize for one of the preferred fonts of an alias

Behdad Esfahbod <[email protected]> Sun, 23 Sep 2018 16:22:12 -0700
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <CAF63+7V64Bx9ExtEgaCC+Drs9pb+ujXWJqb5AnMRWOyRB3sDDQ@mail.gmail.com>
You can ue <match target="font"> for that.

On Sat, Sep 22, 2018 at 4:04 AM, <[email protected]> wrote:

> Hello,
>
> I'm trying to basically use "family1:pixelsize=16" with
> "family2:pixelsize=14"
> as an alias for "myalias", but I didn't manage to do so. I'm stuck with
> something like:
>
> <match target="pattern">
>   <test qual="any" name="family">
>     <string>myalias</string>
>   </test>
>   <edit name="family" mode="prepend">
>     <string>family1</string>
>   </edit>
>   <edit name="family" mode="prepend">
>     <string>family2</string>
>   </edit>
>   <edit name="pixelsize" mode="prepend">
>     <int>16</int>
>   </edit>
> </match>
>
> currently, but I can't figure how to edit the pixelsize only for the second
> font only. Any idea?
> _______________________________________________
> Fontconfig mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/fontconfig
>



-- 
behdad
http://behdad.org/

_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig