[Fontconfig] rule to exclude certain fonts based on file type and name scheme

Akira TAGOH akira at tagoh.org
Tue Sep 3 20:30:59 PDT 2013


On Tue, Sep 3, 2013 at 9:28 PM, Raimund Steger <rs at mytum.de> wrote:
> Fabian Greffrath wrote:
>>
>> [...]
>>
>>
>>> <match target="scan">
>>>     <test name="family" compare="contains">
>>>       <string>Courier</string>
>>>     </test>
>>>     <test name="fontformat"><string>Type 1</string></test>
>>>     <edit name="family" mode="assign">
>>>       <string>__DISABLED_FONT__</string>
>>>     </edit>
>>> </match>
>>
>>
>> Would it be possible to exclude them with the folowing rule then?
>>
>> <selectfont>
>>    <rejectfont>
>>     <pattern>
>>       <patelt name="family"><string>__DISABLED_FONT__</string></patelt>
>>     </pattern>
>>    </rejectfont>
>> </selectfont>
>>
>
> Ah not a bad idea, indeed this is possible.

Indeed, but uninstalling such fonts may be easier to exclude then.

-- 
Akira TAGOH


More information about the Fontconfig mailing list