5

I installed Nerd Fonts to ~/.local/share/fonts, hoping to use it in my Terminal. However, these fonts do not appear as an option in the preferences menu.

$ ls -Al ~/.local/share/fonts/NerdFonts/
total 15892
-rwxr-xr-x 1 andy andy 3281856 Dec 23 01:25 'Inconsolata Bold Nerd Font Complete Mono.otf'
-rwxr-xr-x 1 andy andy 2179436 Dec 23 01:25 'Inconsolata Bold Nerd Font Complete.otf'
-rwxr-xr-x 1 andy andy 3222768 Dec 23 01:25 'Inconsolata Nerd Font Complete Mono.otf'
-rwxr-xr-x 1 andy andy 2113436 Dec 23 01:25 'Inconsolata Nerd Font Complete.otf'
-rwxr-xr-x 1 andy andy 3281580 Dec 23 01:25 'Inconsolata Regular Nerd Font Complete Mono.otf'
-rwxr-xr-x 1 andy andy 2177972 Dec 23 01:25 'Inconsolata Regular Nerd Font Complete.otf'
-rw-r--r-- 1 andy andy      36 Dec 23 02:04  .uuid

I tried the solutions in this answer to no avail.

$ sudo fc-cache -vf ~/.local/share/fonts
$ chmod 755 ~/.local/share/fonts/*.otf

I even rebooted.

Yet when I open the GNOME terminal preferences, check the "Custom font" box, and look for the nerd fonts, they do not appear as an option.

screenshot of preferences

What do I need to do to use my custom font?

2 Answers2

5

As egmont posted, this is a bug in either pango or the nerd fonts. I was able to work around it by installing dconf-editor and setting the property /org/gnome/terminal/legacy/profiles:/:<the_profile_id>/font to the value Inconsolata Nerd Font Regular 16.

0

Quick-n-dirty solution for Xubuntu / xfce-terminal users :

  • edit ~/.config/xfce4/terminal/terminalrc
  • set the required font name + size at the FontName=... line
  • restart your terminal
Httqm
  • 121