[Fontconfig] Another proposal for saving custom fonts in fontconfig

Nicolas Mailhot nicolas.mailhot at laposte.net
Wed Jun 26 11:51:15 UTC 2019


Le 2019-06-26 13:49, Nicolas Mailhot a écrit :

> *if* fontconfig was smart enough, and upstream naming was clean, it
> could be simplified into
> 
>   <match target="scan">
>     <test name="family">
>       <string>family to operate on</string>
>     </edit>

>     <unset name="style"/>

Better:
       <remove name="style"/>

>     <add name="style">
>       <string>synthetic style1</string>
>       <axis>
>         <string>axis name</string>
>         <double>axis value</double>
>       </axis>
>     </add>
>     <add name="style">
>       <string>synthetic style2</string>
>       <axis>
>         <string>axis name</string>
>         <double>axis value</double>
>       </axis>
>     </add>
>     <edit name="fullname" value="auto"/>
>   </match>
> 
> (if fontconfig is able to autoselect, the original style most closely
> matching the synthetic to add, without needing a fullname help)

-- 
Nicolas Mailhot


More information about the Fontconfig mailing list