Fonts: Difference between revisions

imported>Arashsm79
m Fix a typo.
imported>R-k-b
share/X11-fonts doesn't exist, and share/X11/fonts only exists when the option is enabled
Line 107: Line 107:


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
$ cd /nix/var/nix/profiles/system/sw/share/X11-fonts
$ cd /nix/var/nix/profiles/system/sw/share/X11/fonts
$ fc-query DejaVuSans.ttf | grep '^\s\+family:' | cut -d'"' -f2
$ fc-query DejaVuSans.ttf | grep '^\s\+family:' | cut -d'"' -f2
</syntaxhighlight>
</syntaxhighlight>
Note that you may need to set <code>fonts.fontDir.enable = true;</code> for that X11/fonts directory to exist.


=== Adding personal fonts to <code>~/.fonts</code> doesn't work ===
=== Adding personal fonts to <code>~/.fonts</code> doesn't work ===