about summary refs log tree commit diff
path: root/machines/sternenseemann/fonts.nix
blob: f74b6593f3645bda561428477dc6f5a8a6849605 (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
{ config, pkgs, ... }:

{
  config = {
    fonts = {
      fonts = with pkgs; [
        corefonts            # microsoft fonts
        dejavu_fonts
        ttf_bitstream_vera   # dejavu without b&w emojis
        libertine
        liberation_ttf       # free replacements for times …
        google-fonts         # vollkorn, source * pro, inconsolata
        freefont_ttf
        noto-fonts           # noto fonts: great for fallbacks
        noto-fonts-extra
        noto-fonts-cjk
        noto-fonts-emoji     # emoji primary
        twemoji-color-font   # emoji fallback
        unifont              # bitmap font, good fallback
        unifont_upper        # upper unicode ranges of unifont
        spleen               # bitmap monospace font
      ];

      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" ];
        };
      };
    };
  };
}