[Fontconfig] blacklisting doesn't work

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

 



Matthias Clasen wrote:
> So, I tried to figure out why my fc-list output includes the Hershey
> fonts, even though 40-blacklist-fonts.conf is included and read. 
> First I figured out that the glob patterns in
> the /etc/fonts/conf.d/40-blacklist-fonts.conf file we ship don't have
> any effect, since fontconfig does not actually apply globs
> to individual fonts. The globs in <rejectfont> are only applied to
> directories, and the patterns in <rejectfont> are what is applied to
> the individual fonts. So I tried to change the blacklist to a series 
> of patterns like

I've committed a patch which makes fc-list print unescaped fonts.

> Anyway, after stripping the escapes out of the patterns, the
> Hershey fonts still would not vanish. I finally came to the 
> conclusion that something like the patch below will be necessary
> to make blacklisting work again.

It seems to work for me without the patch... could you check again?  In
particular,

 <rejectfont>
      <pattern>
        <patelt name="family">
           <string>Hershey-Gothic-English</string></patelt>
      </pattern>
    </rejectfont>

on CVS HEAD (and indeed, 2.3.90, which is what was installed on a test
computer) causes Hershey-Gothic-English to not show up in fc-list.

pat


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

  Powered by Linux