5

I installed Hack Regular Nerd Font Complete by downloading the .ttf file here. I opened the .ttf file directly and clicked "install", and it told me that the font was installed. However, I cannot find it in my terminal profile, and consequently my powerlevel9k works not well with those icons. How can I fix the problem?

I use Gnome-Terminal on Ubuntu 18.04 LTS.

4
  • Did you try the original Hack? Is the font available in other programs, e.g. LibreOffice? In either case it doesn’t hurt to update the font cache files with sudo fc-cache.
    – dessert
    Jun 16, 2018 at 8:02
  • 1
    I've already done sudo fc-cache, but still no change. The Hack Nerd Font is available in wps office.
    – KestrelW
    Jun 16, 2018 at 11:50
  • I strongly suspect that the patched version just isn’t a monospace font anymore – if the patch added symbols that’s quite possible. Did you try the original font? I use Hack in my terminal emulator (which of yourse also only lets you choose from monospace fonts), so I can confirm it works.
    – dessert
    Jun 16, 2018 at 17:09
  • There is no problem using the regular font Hack, and Hack Nerd Font Regular is surely a monospace font since I'm using it well by setting the default monospace font to Hack Nerd Font. There might be problems for the system to recognize the monospace font.
    – KestrelW
    Jun 20, 2018 at 2:48

1 Answer 1

9

GNOME Terminal's Preferences window (as of version 3.28, shipped by Ubuntu 18.04) only offers you monospace fonts. It might need further investigation why your particular font is not believed to be monospace.

You can set any font using dconf (e.g. in dconf-editor), under /org/gnome/terminal/legacy/profiles:/:<profile-id>/font.

2
  • 2
    Thank you for your solution, I used Tweaks to set the system default monospace font to Hack Nerd Font Regular, and it works. But when I was using dconf-editor, I could only modify the string value of profiles, which is very confusing to me. Could you be more specific?
    – KestrelW
    Jun 16, 2018 at 12:39
  • I've slightly updated my answer, hope that helps.
    – egmont
    Jun 18, 2018 at 22:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .