nixos/fontconfig: fix allowBitmaps option#450484
Conversation
Interesting, I don't see it there, while it is present on my work laptop, so you were right |
|
I'm curious, could we do a bisection of nixpkgs to find the commit which introduced this issue? |
|
I don't really know what I am doing so this may be be nonsense [mcsimw@eldritch:~]$ ls -al /etc/fonts/conf.d/
total 45
dr-xr-xr-x 2 root root 29 Dec 31 1969 .
dr-xr-xr-x 4 root root 6 Dec 31 1969 ..
lrwxrwxrwx 1 root root 66 Dec 31 1969 00-nixos-cache.conf -> /nix/store/hbavmzndg1xa2w49h59x7h7yb44g5pc0-fc-00-nixos-cache.conf
lrwxrwxrwx 1 root root 110 Dec 31 1969 10-hinting-none.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/share/fontconfig/conf.avail/10-hinting-none.conf
lrwxrwxrwx 1 root root 70 Dec 31 1969 10-nixos-rendering.conf -> /nix/store/96yinphvwgs7gpxhcmygkpvxwlnvs9vd-fc-10-nixos-rendering.conf
lrwxrwxrwx 1 root root 105 Dec 31 1969 10-scale-bitmap-fonts.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
lrwxrwxrwx 1 root root 101 Dec 31 1969 10-sub-pixel-none.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/10-sub-pixel-none.conf
lrwxrwxrwx 1 root root 100 Dec 31 1969 10-yes-antialias.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/10-yes-antialias.conf
lrwxrwxrwx 1 root root 112 Dec 31 1969 11-lcdfilter-none.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/share/fontconfig/conf.avail/11-lcdfilter-none.conf
lrwxrwxrwx 1 root root 104 Dec 31 1969 20-unhint-small-vera.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/20-unhint-small-vera.conf
lrwxrwxrwx 1 root root 101 Dec 31 1969 30-metric-aliases.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/30-metric-aliases.conf
lrwxrwxrwx 1 root root 95 Dec 31 1969 40-nonlatin.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/40-nonlatin.conf
lrwxrwxrwx 1 root root 94 Dec 31 1969 45-generic.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/45-generic.conf
lrwxrwxrwx 1 root root 92 Dec 31 1969 45-latin.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/45-latin.conf
lrwxrwxrwx 1 root root 94 Dec 31 1969 48-spacing.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/48-spacing.conf
lrwxrwxrwx 1 root root 96 Dec 31 1969 49-sansserif.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/49-sansserif.conf
lrwxrwxrwx 1 root root 91 Dec 31 1969 50-user.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/50-user.conf
lrwxrwxrwx 1 root root 92 Dec 31 1969 51-local.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/51-local.conf
lrwxrwxrwx 1 root root 74 Dec 31 1969 52-nixos-default-fonts.conf -> /nix/store/l1c45yhsid0aw62a3dmyxfz60zhx9hva-fc-52-nixos-default-fonts.conf
lrwxrwxrwx 1 root root 73 Dec 31 1969 53-nixos-reject-type1.conf -> /nix/store/sqcdgkmrxfynkwjp9imkqdfvrhxyndqb-fc-53-nixos-reject-type1.conf
lrwxrwxrwx 1 root root 65 Dec 31 1969 53-no-bitmaps.conf -> /nix/store/hxwfjdzz7j9ahhr4cpz5qz3wdjc4657i-fc-53-no-bitmaps.conf
lrwxrwxrwx 1 root root 94 Dec 31 1969 60-generic.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/60-generic.conf
lrwxrwxrwx 1 root root 92 Dec 31 1969 60-latin.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/60-latin.conf
lrwxrwxrwx 1 root root 100 Dec 31 1969 65-fonts-persian.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/65-fonts-persian.conf
lrwxrwxrwx 1 root root 95 Dec 31 1969 65-nonlatin.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/65-nonlatin.conf
lrwxrwxrwx 1 root root 94 Dec 31 1969 69-unifont.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/69-unifont.conf
lrwxrwxrwx 1 root root 110 Dec 31 1969 70-no-bitmaps-except-emoji.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/70-no-bitmaps-except-emoji.conf
lrwxrwxrwx 1 root root 96 Dec 31 1969 80-delicious.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/80-delicious.conf
lrwxrwxrwx 1 root root 96 Dec 31 1969 90-synthetic.conf -> /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/90-synthetic.conf
[mcsimw@eldritch:~]$ nix-store --query --requisites /nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1/etc/fonts/conf.d/70-no-bitmaps-except-emoji.conf
/nix/store/q1y9dk7c1kcz4dgphj0swmxfvn4rr174-dejavu-fonts-minimal-2.37
/nix/store/h3b9pm0a537r513l5qdjkysfrcgb1hv2-fontconfig-2.17.1Most machines have this dejavu font installed, it is a dep for a lot of things. the Dejavu build deps have received recent updates perhaps causing this symlink to happen in /etc/fonts/conf.d 🤷♂️ nativeBuildInputs = [
fontforge
perl
perlPackages.IOString
perlPackages.FontTTF
];
Regarding this, I am not sure. We probably need a more experienced nixpkgs contributor. |
due to #422662 after fontconfig upgraded |
nixos-unstable branch had #422662 for already a month, soo that can't be it. This problem was introduced in a very recent revision of nixpkgs. The Yes the nix store contained The commit that started symlinking |
fontconfig 2.17.1 was merged to nixos-unstable last week. |
https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/development/libraries/fontconfig it looks to me like it happened last month, unless I am not reading something correctly or lacking some understanding. last month on github Also I am on nixpkgs master and noticed it I think the day before I opened the issue which was 3 days ago. And I update multiple times a day my flake, and rebuild multiple times a day. |
#444862 was merged into master last week, this PR contain the fontconfig upgrade commit. |
Things done
This change removes the new bitmap rejection config file when allowBitmaps is true, restoring the intended behavior and allowing bitmap fonts like Spleen and Terminus to work correctly.
Fixes #449657
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.