nixpkgs/nixos/modules/config/fonts
Jan Tojnar b31c7e527e nixos/fontconfig: Allow setting default emoji font
In fontconfig’s 60-generic.conf, order of preference is estabilished for emoji
font family. Because fontconfig parses the config files in lexicographic order,
appending each <prefer> from <alias> element to the family’s prefer list
(to be prepended before the family) [1], our font family defaults stored
in 52-nixos-default-fonts.conf will take precedence. That is, of course, unless
the default „weak“ binding [2] is used. Emoji family binds strongly [3],
so we need to set binding to “same” for our <alias>es to be considered before
the ones from 60-generic.conf.

By default, we will set the option to all emoji fonts supported by fontconfig,
so that emoji works for user if they have at least one emoji font installed.
If they have multiple emoji fonts installed, we will use the fontconfig’s
order of preference [4].

[1]: https://github.com/bohoomil/fontconfig-ultimate/issues/51#issuecomment-64678322
[2]: https://www.freedesktop.org/software/fontconfig/fontconfig-user.html#AEN25
[3]: cc8442dec8
[4]: c41c922018
2019-09-01 00:09:25 -04:00
..
corefonts.nix Hide the option fonts.enableCoreFonts 2015-06-01 10:43:43 +02:00
fontconfig-penultimate.nix nixos/fontconfig-penultimate: disable by default 2019-08-30 19:50:30 -04:00
fontconfig-ultimate.nix nixos: add preferLocalBuild=true; on derivations for config files 2019-02-22 20:11:27 +01:00
fontconfig.nix nixos/fontconfig: Allow setting default emoji font 2019-09-01 00:09:25 -04:00
fontdir.nix nixos: add preferLocalBuild=true; on derivations for config files 2019-02-22 20:11:27 +01:00
fonts.nix nixos/fonts: install gyre-fonts by default 2017-04-08 09:33:21 -05:00
ghostscript.nix Obsolete fonts.extraFonts 2014-04-29 12:34:57 +02:00