Fonts: Difference between revisions

From NixOS Wiki
imported>Samueldr
Created page with " == Troubleshooting == === What font names can be used in <code>fonts.fontconfig.defaultFonts.monospace</code>? === Those that fontconfig will understand. This can be querie..."
 
imported>Samueldr
m Fixes wikimarkup
Line 4: Line 4:
=== What font names can be used in <code>fonts.fontconfig.defaultFonts.monospace</code>? ===
=== What font names can be used in <code>fonts.fontconfig.defaultFonts.monospace</code>? ===


Those that fontconfig will understand. This can be queried from a font file using `fc-query`.
Those that fontconfig will understand. This can be queried from a font file using <code>fc-query</code>.


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">

Revision as of 15:44, 29 September 2017

Troubleshooting

What font names can be used in fonts.fontconfig.defaultFonts.monospace?

Those that fontconfig will understand. This can be queried from a font file using fc-query.

$ cd /nix/var/nix/profiles/system/sw/share/X11-fonts
$ fc-query DejaVuSans.ttf | grep '^\s\+family:' | cut -d'"' -f2