Re: how to modify the `variable` property?

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

 



Hi,

Well, a reject pattern will be applied only when caches is reading. To
make it working, you may want to replace target="font" to
target="scan" in your config and run fc-cache -f to update.

Hope this helps,

On Wed, May 24, 2023 at 6:07 PM Werner LEMBERG <wl@xxxxxxx> wrote:
>
>
> [Fontconfig version 2.14.1]
>
>
> For technical reasons I want to reject OpenType Variation Fonts
> completely.  This means that I also want to reject named instances,
> that is, fonts with a face index larger than 0xFFFF (which Fontconfig
> tags as non-variable).  I added the following to my
> `.config/fontconfig/fonts.conf` file
>
> ```
> <fontconfig>
>   <!-- set 'variable' property to 'true' for named instances -->
>   <match target="font">
>     <test name="index" compare="more">
>       <int>65535</int>
>     </test>
>     <edit name="variable" mode="assign">
>       <bool>true</bool>
>     </edit>
>   </match>
>
>   <!-- reject variation fonts -->
>   <selectfont>
>     <rejectfont>
>       <pattern>
>         <patelt name="variable"><bool>true</bool></patelt>
>       </pattern>
>     </rejectfont>
>   </selectfont>
> </fontconfig>
> ```
>
> but the `<match>` block has no effect.  Please help.
>
>
>     Werner



-- 
Akira TAGOH




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

  Powered by Linux