-
-
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
fc-match fails to match fonts set in fonts.defaultFonts #9110
Comments
I'd try to find the cause with help of |
BTW, is it possible that this is connected to perhaps font and/or fontconfig files not being immediately "visible" #9027? Have you rebooted after adding the fonts? |
Thanks for the advices, I tried to reboot but it didn't help. The IPA Font is present and japanese characters are displayed fine so it shouldn't be related to #9027 . Match Debug:
The fonts set in Config files loaded:
Caching information:
IPA Fonts availability:
|
The first |
Deja Vu fonts first is correct, but the second entry in As a test, I changed my
The generated
But
Detailed output:
|
IPAPGothic is in your detailed list. Anyway, I don't know the exact semantics of fontconfig and I don't see it directly in the docs. I would think this font gets pruned (see the |
After some research, it seems that priorities for families alias are set by the order of parsing conf files. But there is a
And
I suppose that adding I am pretty new to NixOS and don't know yet how to make changes to local configuration modules. |
The docs give an explanation of what
My understanding is that if we use a strong one, the first font in the /cc @ttuegel: you seem to know more about this, judging from 9707ffd. |
Yes, that is correct. That would be inappropriate behavior for the default settings. While the configuration files are parsed in order, that does not mean that later ones have lower priority. On the contrary, consider this, from the manual:
We may need to move that config file. According to the
Therefore, it may be more appropriate to do these settings in |
Thanks! Just to give some feedback, as a test, I tried to rename my In the same file, putting Please ignore if it is not relevant information. |
The filename should only affect the order a file is loaded in compared to other files in the same directory. Though, come to think of it, that may hose my fix. I will have to think on this more. If |
Yes, I'm afraid we might have a problem from the fact that within a single To truly interleave the reading, we'd have to join our system |
@vcunat |
User config: personally, I would expect that if I put some files into the user config instead of the system one, it will create the same result for that user. But that's probably just nitpicking ATM. Another minor twist that got introduced: controlling the default font for a family by a file |
Works perfectly, thanks! |
I am trying to set IPA proportional fonts for Japanese serif & sans-serif, but it seems that fonts set via
fonts.defaultFonts
are not matched byfc-match
.configuration.nix:
/etc/fonts/conf.d/98-nixos.conf
&/etc/fonts/2.11/conf.d/98-nixos.conf
are correctly generated:but
fc-match
seems to ignore it:The text was updated successfully, but these errors were encountered: