Re: How to ignore OpenType Collection fonts

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


On Sun, May 29, 2016 03:55, Masamichi Hosoda wrote:
> ```
> <selectfont>
>   <rejectfont>
>     <glob>*.ttc</glob>
>   </rejectfont>
>   <acceptfont>
>     <pattern>
>       <patelt name="fontformat">
> 	<string>TrueType</string>
>       </patelt>
>     </pattern>
>   </acceptfont>
> </selectfont>
> ```
> It ignores OTC fonts.
> However it ignores TTC fonts, not only OTC fonts.
> Is there a way to ignore the only OTC fonts?

The way I read the implementation of FcConfigAddCache, <globs> are always
checked first when building the cache before any pattern-based
<acceptfont> has a chance to do anything.

This means, you would probably have to use <acceptfont> with all filenames
in <glob> that you want to keep. Then remove the <pattern> based
<acceptfont> and leave the <glob> in <rejectfont> unchanged.


Worringer Str 31       home: rs@xxxxxxxx    +49-179-2981632
Duesseldorf 40211 DE   work: raimund.steger@xxxxxxxxxxxxxxx

Fontconfig mailing list

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

  Powered by Linux