about summary refs log tree commit diff
path: root/machines/sternenseemann/fonts.nix
blob: 2077c2b81b67801ef0df8ce5143df4b872cef07f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ config, pkgs, ... }:

{
  config = {
    fonts = {
      fonts = with pkgs; [
        corefonts            # microsoft fonts
        atkinson-hyperlegible
        ttf_bitstream_vera   # dejavu without b&w emojis
        libertine
        liberation_ttf       # free replacements for times …
        freefont_ttf
        noto-fonts           # noto fonts: great for fallbacks
        noto-fonts-extra
        noto-fonts-cjk
        noto-fonts-emoji     # emoji primary
        open-sans
        vollkorn
        twemoji-color-font   # emoji fallback
        unifont              # bitmap font, good fallback
        unifont_upper        # upper unicode ranges of unifont
        lmodern
      ];

      fontDir.enable = true;
      enableGhostscriptFonts = true;
      enableDefaultFonts = true;

      fontconfig = {
        enable = true;
        antialias = true;
        hinting.enable = true;
        defaultFonts = {
          monospace = [ "Bitstream Vera Sans Mono" "Noto Mono" ];
          serif = [ "Vollkorn" "Noto Serif" ];
          sansSerif = [ "Open Sans" "Noto Sans" ];
          emoji = [ "Noto Color Emoji" "Twitter Color Emoji" "Unifont" "Unifont Upper" ];
        };
      };
    };
  };
}