[Fontconfig] How to block glyph fallback?

Khaled Hosny khaledhosny at eglug.org
Sun Dec 9 15:26:20 PST 2012


On Sun, Dec 09, 2012 at 01:04:39PM -0800, Wendell P wrote:
> I need to block glyph fallback in specific applications on Linux, so
> that if the chosen font lacks a glyph, just the "missing glyph" glyph is
> shown.
> 
> The apps are text editors based on GtkTextView, so I searched the GTK
> docs but couldn't find any way to control this feature. Can fallback
> only be controlled through fontconfig?
> 
> I would like to be able to disable fallback both per application and per
> user.

You can use Pango fallback attribute:
http://developer.gnome.org/pango/stable/pango-Text-Attributes.html#pango-attr-fallback-new
http://developer.gnome.org/pango/stable/PangoMarkupFormat.html

Regards,
Khaled


More information about the Fontconfig mailing list