Fonts: Difference between revisions
imported>Srhb mNo edit summary |
imported>Erikarvstedt add "Imperative installation of user fonts" |
||
| Line 21: | Line 21: | ||
]; | ]; | ||
</syntaxhighlight> | |||
=== Imperative installation of user fonts === | |||
This is useful for quick font experiments. | |||
Example: Install <code>SourceCodePro-Regular</code>. | |||
<syntaxhighlight lang="bash">font=$(nix-build --no-out-link '<nixpkgs>' -A source-code-pro)/share/fonts/opentype/SourceCodePro-Regular.otf | |||
cp $font ~/.local/share/fonts | |||
fc-cache -f | |||
# Verify that the font has been installed | |||
fc-list -v | grep -i source | |||
</syntaxhighlight> | </syntaxhighlight> | ||