nixos/fontconfig: fix allowBitmaps option with recent fontconfig versions#449715
nixos/fontconfig: fix allowBitmaps option with recent fontconfig versions#449715mcsimw wants to merge 1 commit into
Conversation
|
Rename your commit to match the PR: title conventions apply to both commits and PRs. And a non-blocking tip for the future (and your own convenience): when submitting PRs, never commit to the main branch, branch out. The main branch in your clone is there only to be synced with the upstream |
I renamed the commit to match PR. And noted for next time, will branch out when commiting changes to my nixpkgs repo. |
|
@acid-bong I would also like to add that I am not sure exactly what caused this file to get generated as of yesterday by nixpkgs. Fontconfig was updated last about a month ago in the nixos-unstable branch and I keep my nixpkgs updated pretty frequently. I would have noticed earlier if that was an issue. So the title of PR/commit/my description of the cause of this problem might not be accurate. The fontconfig package might not be generating it, perhaps some other package that got updated. I'm not too sure🤷🏻♂️ Anyways that new file that's getting generated 70-no-bitmaps-except-emoji.conf has to be either removed or modified in some way for bitmap fonts to work on nixos (outside a tty session) |
I'm not sure how fontconfig should be configured, but |
|
There are four different files with priority 70: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/tree/main/conf.d?ref_type=heads |
| replaceDefaultConfig "11-lcdfilter-default.conf" "11-lcdfilter-${cfg.subpixel.lcdfilter}.conf" | ||
| )} | ||
|
|
||
| ${lib.optionalString cfg.allowBitmaps '' |
There was a problem hiding this comment.
Seems like line 137 should be tweaked instead?
There was a problem hiding this comment.
Not sure really how to do this properly. Line 202 blindly links the configuration files, while some of them are conflicting.
Ma27
left a comment
There was a problem hiding this comment.
Please retarget to staging-nixos since this causes a rebuild of all nixos tests.
Everything in there will usually be merged with the next kernel update, i.e. ~weekly.
See also https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#changes-rebuilding-all-nixos-tests
pretty sure I did not see |
|
i do see them on my desktop PC, which I have not updated since monday |
Is it present in /etc/fonts/conf.d? I don't think they get symlinked there in older revisions of nixpkgs. |
The new version of fontconfig includes a new configuration file
70-no-bitmaps-except-emoji.confthat rejects bitmap fonts by default. This breaks the existingfonts.fontconfig.allowBitmapsoption, which istrueby default but no longer has any effect.This change removes the new bitmap rejection config file when
allowBitmapsistrue, restoring the intended behavior and allowing bitmap fonts like Spleen and Terminus to work correctly.Fixes #449657
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.