[Fontconfig] Another try at blocking fallback

Akira TAGOH akira at tagoh.org
Thu Dec 13 21:25:20 PST 2012


There are an example of the rejectfont element in
conf.d/70-no-bitmaps.conf and some clue in fonts.dtd too. also
documented in fonts-conf.5 manpage how it works.

Though I'm not sure how it helps to stop falling back fonts since it
doesn't makes that conditional. do you want to do that with/without
Pango right? as Khaled Hosny suggested, it can be done in Pango
though, there are no way to do that in fontconfig so far and a RFE is
in Bugzilla long while.


On Fri, Dec 14, 2012 at 12:10 PM, Wendell P <wendellp at operamail.com> wrote:
> Still trying to block glyph fallback.
>
> Is it possible to block fallback to specific fonts? Maybe I could just
> block all fonts.
>
> For example, to configure so that when the font is Terminus, all glyph
> fallback is blocked, have something like:
>
>   <match target="font">
>     <test name="family"><string>Terminus</string></test>
>     <Block_fallback_to_any_other_font>
>   </match>
>
> From the docs, it seems that <rejectfont> might do this, but I couldn't
> find an example of using it this way. This didn't work:
>
>   <match target="font">
>     <test name="family"><string>Terminus</string></test>
>     <rejectfont>
>       <pattern>
>         <patelt name="family"><string></string></patelt>
>       </pattern>
>     </rejectfont>
>   </match>
>
> --
> http://www.fastmail.fm - A fast, anti-spam email service.
>
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig



-- 
Akira TAGOH


More information about the Fontconfig mailing list