-
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
Glyph smaller than character #127
Comments
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 I have this issue with every font I've tried so far |
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 |
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 😄 |
@ruro thanks for the details. can you please try the the |
@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. 😄 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) |
@ruro First thanks for your thoughts and ideas. I can sense some frustration you may have had, if so sorry about that 😟
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 😟 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).
Guake Terminal seems to support non-mono fonts. |
@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 😄 |
Hello,
However when I want to choose a font in 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 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 |
Thanks @shibumi sorry for the very late reply. I'll try to take a look at Inconsolata |
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 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
<#127 (comment)>,
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
<#127 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADjZp1mNuby3tgQjpo50Kai9kfWvqcS2ks5uarvGgaJpZM4Luad3>
.
|
Hi guys, I'm not sure that it works for all but simply removing the font and installing it again solved my problem in windows env. Just make sure that you used the right file for the right OS |
I have it working for me on Arch on multiple machines, and Ive gotten it to work on Ubuntu as well, but it doesn't just work out of the box, I've never got it working for any font in urxvt, and I cant get it working with any mono-spaced fonts. I've gotten used to not using mono fonts, its worth it for me, would rather have awesome icons for all the things than equal width characters. I feel like its been different to get it working on every machine but I haven't done it enough times to be sure. I think the trick is using a non mono font & making sure you have the correct fallback font(s) installed/configured. Im still using the Iosevka Nerd Font Complete. In my setup I must also have the stock Iosevka font installed from Arch's repo or else it doesn't work properly |
I also have a problem with the glyph sizes. I've found the following:
Kitty: Konsole: I think this missing value is related to the incorrect rendering. |
gnome-terminal only lists fonts that are marked monospaced, which seems is not the case for nerd fonts. You can trick it to use them anyway by unchecking "user font" in gnome-terminal and choose the font you want as the system-wide monospace font in gnome-tweaks. More on-topic: With lsd it is simple to show the issue by comparing the output of |
i have the issue too, i installed the already patched inconsolata version, then i ran i've installed another nerd font, (the DejaVuSansMono Nerd Font) |
@sztomi If you're using kitty, you will have to set the symbol map to the non-monospaced version of your nerdfont. It gets set to the monospaced version automatically due to the fact kitty will automatically use monospace fonts by default. Ex: you can find your installed fonts with
|
I have the problem in dwm and its a lot worse there |
With the recent upgrade in the Arch AUR of
I solved the problem by uninstalling the |
Issue becomes apparent when compared with how the default vscode's terminal shows the exact same glyphs, also I'm using the cascadia code in both the terminal. We can see clearly how the arrow, tilde or the X is shown in both the terminal, there's a huge difference. The arrow and the X almost makes it apparent. |
I have this issue on WSL but only in Windows Terminal. Visual Studio Code's built in terminal renders the glyphs at the right size. EDIT: I also upgraded my zsh theme to powerlevel10k, sizing issues are gone. |
+1 fonts with |
Exactly the same issue. |
Having the same issue, Arch Linux, Alacritty, DejaVu Sans Mono. Tried installing different packages from AUR, using the install script, nothing seems to work. |
Well... The upper example is 'too small'? In fact it is not too small, it is just monospaced. The 'document' icon has the same width as the letter On the other hand, the 'ok' behavior is has no monospaced icons, 'document' icon is as wide as a full If you want to have big (wider than letters) icons you can not use I guess that is the problem in a lot cases here. Unfortunately people do not tell which exact font files they use, and as there are too many variants it is hard to tell what they use or misuse.
This is also a problem. The AUR packages are rather far behind and the fonts there have issues that are already solved here.
|
Arch and how they broke it for everyone else: #634 -> #764, detailed information in #731 (comment) ff On naming #746 and what |
Any solution I can use to solve this by myself? I have this "Comic Code" font with added glyphs I tried iTerm2 and Terminal with the same output. |
I'm using DWM and configuring it to use a larger Nerd font works like a charm:
|
@schovi Your issue looks different. The issue is that the 'line' is higher than the powerline symbols, right? |
Here is a simple workaround on linux with fontconfig. Since glyths in monospaced fonts are smaller, we can combine glyphs in sans-serif font and normal characters in monospaced fonts. For example, I personally use DejaVu Sans Mono as main font, and take glyphs from NotoSans Nerd Font, so I write these settings in <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<fontconfig>
<dir>~/.fonts</dir>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>DejaVu Sans Mono</string>
<string>NotoSans Nerd Font</string>
</edit>
</match>
</fontconfig> Now those glyphs are bigger. Here is the result: |
Here another link with explanantions for people that find this issue Some people reported reinstalling helped. This is because the font family naming is broken and the system takes the wrong font file - sometimes. This will be fixed in |
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. |
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:
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
, withvim-devicons
Your Setup
Optional
The text was updated successfully, but these errors were encountered: