nerd-fonts
nerd-fonts copied to clipboard
Glyph smaller than character
Requirements
If you are not sure whether or not what you are reporting is actually an issue or you have a general question please message in the Gitter Chat Room
By posting an issue you acknowledge the following:
- [x] A brief but descriptive title of your issue
- [x] I have searched the issues for my issue and found nothing related and/or helpful
- [x] I have read or at least glanced at the FAQ
- [x] I have read or at least glanced at the Wiki
These items you must provide answers to. Make sure to add all the information needed to understand the issue so that someone can help. If the info is missing we'll add the 'Needs more information' label and may choose to close the issue until there is enough information.
^ ----- Please remove all of the above and this line before posting your issue ----- ^
Subject of the issue
Glyph looks smaller than characters in neovim
, with vim-devicons
Your Setup
- Knack Nerd Font (download from the github)
- termite with zsh
- Arch Linux - kernel 4.8.13-1-ARCH
Optional
I can also confirm the small icons, and I have the same setup but except I'm on the Fura Mono Font
Arch Linux : x86_64 Linux 4.8.13-1-ARCH AUR pkg version : nerd-fonts-complete 1.0.0-1
I have this issue with every font I've tried so far including (inconsolata, fura mono, meslo, terminess, dejavu sans, knack) This is not just a terminal specific issue Ive noticied this in termite, i3bar , & gvim
Ouch. Thank you both for the details. I will try to take a look this weekend if I get the chance
Can either/both of you tell me the exact font using? Most importantly if it ends in Complete Mono
?
I'm using FuraMonoForPowerline Nerd Font Regular 11 in the terminal.
This very likely may not have been an upstream bug. I noticed all of the affected users are running the AUR version of nerd-fonts. There was an update to the AUR package today where the package maintainer noted he removed he removed the "single-width-glyphs" variant fonts from the package so the system would use the "non-single-width-glyphs" fonts. I can confirm the upgrade of the AUR package nerd-fonts-complete 1.0.0-2 -> 1.0.0-3, fixed this bug for me. If OP can confirm, mark this issue as closed.
@jayywolff Thanks for the update. Good observation on those affected.
I think the root cause/fix is to make sure the 'mono' versions internal name have 'mono' somewhere so they don't conflict with 'non-mono'. Right now if you install both it is seen as one, as far as I know.
@kiuKisas can let us know if @jayywolff suggestion works for you?
Thanks :smile:
I seem to be having the same issue. I am using the Knack Regular Nerd Font Complete Mono
font. I installed it by downloading the .ttf
files from the 1.0.0
branch. Arch (Manjaro): Linux 4.9.24-1.
Most characters are so small, that they are pretty much not usable as glyphs and indicators. Some of the characters are as big as they should be. For example the powerline symbols are normal sized, while the various git logos are very small.
Compare sizes:
echo "\nSmall :\uf300\uf460\ue70a\ue258\nSo-so :\uf000\uf072\nNormal:\ue285\uf245\n"
From Character Map App:
I don't think this is font dependent, or at least not just Knacks
fault, because previously I had this same issue with Sauce Code Pro
. I even think the same characters were small.
@RuRo thanks for the details. can you please try the Knack Regular Nerd Font Complete
(non-mono) variant?
the Mono
variants it is expected that the glyphs are a bit on the small size (to main scale in a fixed-width glyph)
@ryanoasis I will try it, when I get home, however that doesn't make much sense to me. The characters, that are too small are even smaller than English letters as well as some other Mono-spaced characters. There is enough space in a character to increase the size of the icon. Or at least it looks like that to me.
If it works with non-mono font, that wouldn't really be a fix, since these fonts are mostly used for terminals and you can't use mono-spaced fonts in terminals. If increasing the size of icons is not possible in mono-spaced fonts, could you make 2 character wide variants for the small icons. I.e. the left part character + the right part? Thank you.
@RuRo Okay sure let me know how it goes. :smile:
As for the size, I think it just looks that way as you say. It is a bit deceiving until you highlight or change the background color that it becomes more obvious:
The first 2 glyphs look like they could be a bit larger but not much without the ratio changing (stretching)
Well. I tried the regular size font. As expected, the characters are bigger, but it is completely broken in terminal. The git-in-a-circle character is still small btw, but whatever.
Is there really no way to have the cake and eat it? Maybe something hacky, like splitting the smaller characters into 2 monospaced parts.
Or maybe allow non-monospace characters, but have their width be a multiple of a single character, so then you could do something like this in terminal:
<double width icon><zero width char> is the same length as
<normal character><normal character> both in terms of visual size and char count
Edit: I just realized, that I am probably reinventing the wheel with my 'suggestions'. Noticed that the non-monospaced variant is sometimes referenced as "double width" in the Readme. Facepalm. I will have to look more closely into that.
P.S. Konsole and Yakuake don't seem to support double width characters. Can somebody reccomend a drop down terminal that does?
@RuRo First thanks for your thoughts and ideas. I can sense some frustration you may have had, if so sorry about that :worried:
Is there really no way to have the cake and eat it? Maybe something hacky, like splitting the smaller characters into 2 monospaced parts.
Hmm yeah this is an interesting idea. I actually thought about doing something like this too for issues we've had with ambiguous glyph width handling in Vim but I am not sure how feasible it is and managing this I can see being a nightmare :worried:
For the "double width" sorry if there was any confusion. If you have any ideas for making things more clear in the readme please let me know.
So I guess you realized that the way to go is to use the 'double width' variant (depending on terminal support).
P.S. Konsole and Yakuake don't seem to support double width characters. Can somebody reccomend a drop down terminal that does?
Guake Terminal seems to support non-mono fonts.
Hm-hmmm. I tried the double-width variant with Guake. The big characters work well, but now the powerline arrows are slightly misaligned the '<' arrows have a small space between them and the next block, while the '>' arrows are vertically a little smaller than the whole 'line'. Here's a screenshot:
Actually, maybe the git symbol is a bit too small. But it works unexpectedly good overall.
P.S. What I find weird, is that the U+E0B4 and U+E0B6 work fine (they are the round powerline symbols), while U+E0B0 and U+E0B2 have the issues described above.
@RuRo Thanks for the details.
Can you tell me which font and font size you are using by the way?
Hopefully the alignment issues will at least be mostly solved in v1.1.0, here is how it is showing for me:
As for the GitHub logo you can try to use the 'other' set:
Fonts just uploaded... probably won't improve anything here but if anyone would like to test them out that'd be great :smile:
Hello, I have installed the following Fonts:
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraCode/Bold/complete/Fura Code Bold Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraCode/Light/complete/Fura Code Light Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraCode/Medium/complete/Fura Code Medium Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraCode/Regular/complete/Fura Code Regular Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraCode/Retina/complete/Fura Code Retina Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraMono/Bold/complete/Fura Mono Bold for Powerline Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraMono/Medium/complete/Fura Mono Medium for Powerline Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/FiraMono/Regular/complete/Fura Mono Regular for Powerline Nerd Font Complete Mono.otf
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/Inconsolata/complete/Inconsolata for Powerline Nerd Font Complete Mono.otf
However when I want to choose a font in qterminal
I see only these fonts:
I can confirm the small glyphs, too:
But now starts the funny part. In my i3blocks statusbar I have the right size of the glyphs:
But that seems to have something todo with: https://github.com/gabrielelana/awesome-terminal-fonts I have installed them as well and when I remove them I have small icons just like in my terminal..
EDIT: With termite I have the same behaviour. Some icons are big some others are small when I set just 'Inconsolata' there. But when I excplicitly set InconsolataForPowerline Nerd Font
there then all icons are small..
Thanks @shibumi sorry for the very late reply. I'll try to take a look at Inconsolata
This is also a issue with SauceCodePro Nerd Font Mono. i have tried both the nerd font complete from aur and also download from nerdfont's website.
same problem on DejaVu Sans Mono but only in Ubuntu (18)
terminal: hyper 2.0
screenshot on ubuntu:
same font, my mac works fine:
I have the same issue. I am on Arch using the patched Iosevka font
Same here. Fura Code and Iosevka in arch with i3
Same problem here with Archlinux using any of the nerd fonts (i3wm)
Currently using the AUR package nerd-fonts-complete 2.0.0-5 Still running Arch, i3wm, termite as my terminal emulator.
When using Iosevka Nerd Font, I dont have the issue with tiny icons, but I do have an issue with the equal sign taking up the space of 3 characters (which makes the font un-usable for me). I have to use a non-patched version of Iosevka and just deal with the tiny icons but at least the equal sign is normal.
I have exactly the same config (ArchLinux, i3wm, nerd-fonts-complete) but with urxvt. Could you try with it please ?
Le jeu. 13 sept. 2018 à 21:44, Johnathan Wolff [email protected] a écrit :
Hey guys, I haven't experienced this issue for while now. Last year it would fix and break between some updates, but the AUR package has been stable lately.
Currently using the AUR package nerd-fonts-complete 2.0.0-5 Still running Arch, i3wm, termite as my terminal emulator. Currently using Iosevka Nerd Font
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ryanoasis/nerd-fonts/issues/127#issuecomment-421129063, or mute the thread https://github.com/notifications/unsubscribe-auth/ADjZpwU9ypSUhuvpiRcPKV0dEPKkx93Jks5uarWFgaJpZM4Luad3 .
@myrage2000 what do you have for your "URxvt.font" setting in .Xresources? I've never been able to get icons to work at all in urxvt
If i'm right I have something like : "xft:[insert random nerd-font MONO here]:size=8" And glyphs are 2x smaller than letters. Maybe urxvt does not support it so ? This is weird I have never heard that
Le jeu. 13 sept. 2018 à 22:10, Johnathan Wolff [email protected] a écrit :
@myrage2000 https://github.com/myrage2000 what do you have for your "URxvt.font" setting in .Xresources? I've never been able to get icons to work at all in urxvt
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ryanoasis/nerd-fonts/issues/127#issuecomment-421136888, or mute the thread https://github.com/notifications/unsubscribe-auth/ADjZp1mNuby3tgQjpo50Kai9kfWvqcS2ks5uarvGgaJpZM4Luad3 .
@myrage2000 can you provide a screenshot?
This is probably to be expected in URxvt, see: https://github.com/ryanoasis/nerd-fonts/wiki/Terminal-Emulators#urxvt
@myrage2000
with the setting "URxvt.font: xft:Iosevka Nerd Font Mono:size=16" I am able to see the glyphs but they are smaller than normal characters and several glyphs are missing for some reason.
i installed two nerd-fonts on my archlinux laptop with i3-wm
-
InconsolataGo
-
Noto
in i3 config, when i set the font to font pango:Noto Sans 20
, small glyph was found.
but the size returns to normal when i set to font pango:InconsolataGo Nerd Font 20
Maybe u could also try InconsolataGo Nerd Font
?