Skip to content

Feature Request: Override fonts.conf location with env var FONTCONFIG_FILE #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
na4zagin3 opened this issue Jan 1, 2025 · 1 comment

Comments

@na4zagin3
Copy link

na4zagin3 commented Jan 1, 2025

Hi team,
I would like to override fontconfig configuration for each project by specifying environment variable FONTCONFIG_FILE.

Environment variables

FONTCONFIG_FILE is used to override the default configuration file.

Currently it's hardcoded as the following.

local fonts_conves = { --- plural, much?
"/usr/local/etc/fonts/fonts.conf",
"/etc/fonts/fonts.conf",
}

This makes it possible to compile LuaLaTeX documents reproducibily with Nix which generates fonts.conf at some arbitrary directory with makeFontsConf.

Thanks!

@cfr42
Copy link

cfr42 commented Jan 21, 2025

Wouldn't it be better to use a TeX-specific variable? TL configuration, for example, is basically done in texmf.cnf/texmfcnf.lua.

Not that my opinion is worth squat, but I don't think it would be a great idea to make the behaviour dependent on the value of an environmental variable which doesn't belong to the TeX installation. (Aside from PATH which is unavoidable.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants