-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nerd fonts are not shown in gnome terminal and gvim font selection list #318
Comments
I've been experiencing the same issue on Ubuntu 18.10. The issue seems to be that the Gnome Terminal application only accepts monospaced fonts and for some reason it's not recognizing these fonts as monospaced. A possible temporary workaround is to set the system font to whichever font you want and then tell the Terminal application to use the system font instead of a custom font. |
i run into some similar issue and i believe the problem is nerd fonts does not declare diff -u <(fc-query -b Hack\ Regular\ Nerd\ Font\ Complete\ Mono.ttf) <(fc-query -b Hack-Regular.ttf)
--- /dev/fd/63 2019-02-08 14:05:53.641296122 -0800
+++ /dev/fd/62 2019-02-08 14:05:53.641296122 -0800
@@ -1,15 +1,16 @@
-Pattern has 22 elts (size 32)
- family: "Hack Nerd Font Mono"(s)
+Pattern has 23 elts (size 32)
+ family: "Hack"(s)
familylang: "en"(s)
style: "Regular"(s)
stylelang: "en"(s)
- fullname: "Hack Regular Nerd Font Complete Mono"(s)
+ fullname: "Hack Regular"(s)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
+ spacing: 100(i)(s)
foundry: "SRC"(s)
- file: "Hack Regular Nerd Font Complete Mono.ttf"(s)
+ file: "Hack-Regular.ttf"(s)
index: 0(i)(s)
outline: True(s)
scalable: True(s)
@@ -17,7 +18,7 @@
capability: "otlayout:DFLT otlayout:latn"(s)
fontformat: "TrueType"(s)
decorative: False(s)
- postscriptname: "HackNerdFontCompleteM-Regular"(s)
+ postscriptname: "Hack-Regular"(s)
color: False(s)
symbol: False(s)
variable: False(s) the thing that matters is |
|
Is there any solution for this issue ? Beside the fact that they aren't recognised by the terminal the horizontal spacing is horrible! |
As a workaround, is there something we can add to the fontconfig fonts.conf file to set the spacing appropriately? |
As a workaround, on pop os, I used dconf to force it. I copied the otf files to ~/.local/share/fonts and then ran: (you can tab complete the directory path, or do "dconf list /org/gnome/terminal/legacy/profiles:/" to find your profile id). |
@lmagomes it works, thanks |
In case this helps for the Gnome Terminal aspect of this issue Related to https://askubuntu.com/questions/593468/why-gnome-terminal-doesnt-display-a-specific-font-as-available , I found that after changing the setting |
@nanobowers it works for me, thanks. BTW, after setting |
Confirmed that gVim for Windows also has this issue, the patched Nerd Fonts don't show up in the list of fonts when selecting them. |
Hmm, @neo-ctataryn can you tell me one example where it is not shown? Tried one font, and it works 😬 : Only one (the non-nf-mono one) installed: Edit: Add details on which concrete font I tried |
On windows this can be related to #695, wanted to try that. |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
🎯 Subject of the issue
The cause should be that nerd fonts have proportional spacing property for mono spacing fonts. See attached image.
🔧 Your Setup
★ Optional
The text was updated successfully, but these errors were encountered: