[Nix-dev] Fonts

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Mon Jun 9 20:30:07 CEST 2014


Hi,

In some applications (Cantata, chromium) I get squares instead of
Japanese characters. In others (emacs, urxvt, firefox, uzbl (ugly)) I
get actual characters.

Does anyone know what I need to do to get Japanese to show up? In other
distros I would normally install every font available ever, run
fontconfig and hope for the best.

Similarly, I was watching something with subtitles the other day and mpv
was struggling to find some fonts even though I seemed to have them in
~/nix-profile/share/fonts/truetype . It might have needed some special
variety however so don't hold me on this one.

What's the procedure of installing fonts? In my configuration.nix I have

  fonts.enableCoreFonts = true;
  fonts.enableFontConfig = true;
  fonts.enableFontDir = true;
  fonts.enableGhostscriptFonts = true;

I seem to get squares whether I have all of the above or none at all.

I also was installing separate packages for fonts previously but it did
not seem to matter.

I tried to find some info online on this but I was only ever able to
come across discussion whether unfree fonts should be included and
nothing else.
-- 
Mateusz K.


More information about the nix-dev mailing list