Ensure fonts in development environment

As this wasn’t mentioned yet:
In a development shell you will probably want to set:

export FONTCONFIG_FILE=...

In nixpkgs there’s a makeFontsConf that you can use with that.

See e.g.

Note that this can lead to undesired situations where globally installed fonts won’t be able to be found anymore inside this development shell unless you explicitly list global directories in your call to makeFontsConf.

7 Likes