-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Cannot override fontconfig #1827
Comments
IMO in general |
I'm also for the last option. Maybe we should do this already? |
I thought all fontconfig *.d directories are processed in parallel, so adding 99-* into either should be able to override anything. I recently read the docs, but I'm not sure about this. |
Hmm, if not, then it might be best to do some kind of buildEnv on the two config trees and use that one. |
@vcunat Unfortunately, *.d directories are not processed in parallel. Try |
The overriding of parts of config is no easy problem. For example, specified directories (fonts, cache) are used in the order they were specified, so one will typically want to add stuff before the defaults and not after them (or one may even want to remove/replace them). |
I think this is fine now in staging. The following are loaded after the defaults:
|
There is no way to add high-priority, system-wide fontconfig configuration file.
In conventional Linux systems, we can write
/etc/fonts/conf.d/99-overrideall
to override font configurations. (e.g. overriding60-latain.conf
or65-nonlatain.conf
to modify font priorities.)We cannot utilize
local.conf
since it is loaded from51-local.conf
and is overridden by60-latain
and others./etc/fonts/fonts.conf
includes both/etc/fonts/conf.d
and${fontconfig}/etc/fonts/conf.d
, but/etc/fonts/conf.d
is included before${fontconfig}/etc/fonts/conf.d
, so that all configurations in/etc/fonts/conf.d
are overridden by configurations in${fontconfig}/etc/fonts/conf.d
.Possible fixes
${fontconfig}/etc/fonts/conf.d/99-overrideall
${fontconfig}/etc/fonts/conf.d/
/etc/fonts/conf.d
after${fontconfig}/etc/fonts/conf.d
so that administrators can generate configuration files usingenvironment.etc
The text was updated successfully, but these errors were encountered: