Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to block font substitution in specific apps on Linux, but my research indicates that it might be controlled only at the system level, probably with fontconfig. I have found some discussion of how to direct fontconfig to substitute particular fonts, but nothing on how to competely turn off the feature.

The best answer would be how to disable glyph fallback for individual apps, but doing it system wide would be better than nothing.

share|improve this question
up vote 3 down vote accepted

There appears to be absolutely no way to disable font fallback. If you have fontconfig installed, the font substitution mechanism will always be active.

I have discovered two narrow ways to limit fallback. First, to block fallback in applications that use Pango, you can use the Pango fallback attribute to compile a special version that doesn't use fallback fonts. (Edit: Someone suggested to me that it may also be possible to do this by modifying the GtkTextLayout and GtkTextView within an app.)

Second, you can restrict the fontconfig search path to a directory with just the font(s) you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.