Fonts: Difference between revisions

imported>LinArcX
Set multiple fonts for different languages
imported>Mic92
fix indentation
Line 8: Line 8:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
fonts.fonts = with pkgs; [
fonts.fonts = with pkgs; [
    noto-fonts
  noto-fonts
    noto-fonts-cjk
  noto-fonts-cjk
    noto-fonts-emoji
  noto-fonts-emoji
    liberation_ttf
  liberation_ttf
    fira-code
  fira-code
    fira-code-symbols
  fira-code-symbols
    mplus-outline-fonts
  mplus-outline-fonts
    dina-font
  dina-font
    proggyfonts
  proggyfonts
];
];
</syntaxhighlight>
</syntaxhighlight>


Line 40: Line 38:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
  #----=[ Fonts ]=----#
  #----=[ Fonts ]=----#
  fonts = {
fonts = {
enableDefaultFonts = true;
  enableDefaultFonts = true;
    fonts = [  
  fonts = [  
          pkgs.ubuntu_font_family
    pkgs.ubuntu_font_family


          # Persian Fonts
    # Persian Fonts
          pkgs.vazir-fonts
    pkgs.vazir-fonts
];
  ];


fontconfig = {
  fontconfig = {
    penultimate.enable = false;
    penultimate.enable = false;
    defaultFonts = {
    defaultFonts = {
serif = [ "Vazir" "Ubuntu" ];
      serif = [ "Vazir" "Ubuntu" ];
  sansSerif = [ "Vazir" "Ubuntu" ];
      sansSerif = [ "Vazir" "Ubuntu" ];
  monospace = [ "Ubuntu" ];
      monospace = [ "Ubuntu" ];
    };
    };
};
   };
   };
};
</syntaxhighlight>
</syntaxhighlight>