2

I recently installed NixOS 22.11, with Gnome desktop environment, but all japanese characters look pixelated, like shown in the picture:

enter image description here

My configuration file is as follows:

fonts = {
  enableDefaultFonts = true;

  fonts = with pkgs; [
    noto-fonts
    ubuntu_font_family
    unifont
  ];

  fontconfig = {
    antialias = true;
    defaultFonts = {
      serif = [ "Ubuntu" ];
      sansSerif = [ "Ubuntu" ];
      monospace = [ "Ubuntu Source" ];
    };
  };
};  
2
  • 1
    Does the Ubuntu font have Katakana characters? If not, this is probably just a fall back. Does Kanji look sane? (By the way, funny choice of example instead of 日本語 :-) But I guess the point was to show broken Katakana.) May 14, 2023 at 17:05
  • Kanji also appears in the same manner. I tried going to Google Docs and experimenting with a bunch of different fonts, including Noto Sans (which supposedly has support for CJK characters), but not matter what, the problem persists
    – Educorreia
    May 14, 2023 at 17:19

1 Answer 1

4

The problem was that I didn't have any font with CJK support installed, apart from Unifont
Adding noto-fonts-cjk-sans package solved the problem

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .