Skip to content
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

Some font spacing is too large or can not be aligned #290

Closed
ihexon opened this issue Aug 23, 2018 · 6 comments
Closed

Some font spacing is too large or can not be aligned #290

ihexon opened this issue Aug 23, 2018 · 6 comments

Comments

@ihexon
Copy link

ihexon commented Aug 23, 2018

z

and

z
I'm using termite and Ubuntu Nerd Font Mono:style=Book(first screenshot) and Ubuntu Nerd Font:style=Book, Xterm and other terminal also has same issue...
I know I just change other font let the display be normal again...
but could this issue can be solve ?

@ryanoasis
Copy link
Owner

Thanks for the report. No initial thoughts come to my mind. Is this font straight from the repo or did you attempt to patch it yourself?

I'd like to try it out myself... at some point

@piersy
Copy link

piersy commented May 6, 2020

@ryanoasis I'm also seeing this. I downloaded the following 2 fonts

https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Ubuntu/Medium/complete/Ubuntu%20Medium%20Nerd%20Font%20Complete%20Mono.ttf

and

https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Ubuntu/Regular/complete/Ubuntu%20Nerd%20Font%20Complete%20Mono.ttf

I'm running

5.3.0-51-lowlatency #44~18.04.2-Ubuntu SMP PREEMPT Thu Apr 23 15:14:21 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I installed the fonts with gnome-font-viewer v3.28.0 by double clicking them and selecting install. But even the font viewer preview was showing the extended spacing.

@MrJmpl3
Copy link

MrJmpl3 commented Dec 4, 2022

I have same issue, but in a minor level.

Ubuntu Mono patched have more space between letters than original Ubuntu Mono

@Finii
Copy link
Collaborator

Finii commented Dec 6, 2022

@MrJmpl3

Hmm, here I compare Ubuntu Mono 0.80 and UbuntuMono Nerd Font 0.80;Nerd Fonts 2.3.0-RC.

image

This looks like both are 500 wide.

Can you show a screenshot, give the version numbers and concrete font file names, and maybe download links?

@Finii
Copy link
Collaborator

Finii commented Dec 6, 2022

@piersy @ihexon

It is another story with Ubuntu Nerd Font Mono (not to be confused with UbuntuMono Nerd Font or UbuntuMono Nerd Font Mono.

Ubuntu is a proportional font. It has slim small-i letter and very wide capital-M letter.

image

The i is 253 and the M is 871 wide.

The Nerd Font Mono variants of fonts are strictly monospaced. That means that all letters and symbols have the same width. In this case it means that the existing i needs to grow to fill the whole 871 which will look very ugly. You usually can not create a monospaced font from a proportional font without a lot of work (done by font designers).

This is the reason why finally the Nerd Font Mono variants are no longer created from proportional source fonts.
See more explanations at

Further down you see some examples.
Note that this is because of the contradicting design goals of proportional and monospaced fonts. This can not be solved.

If you want to use a monospaced Ubuntu variant you can/have to use Ubuntu Mono (i.e. UbuntuMono Nerd Font).

P.S. You might say: Why so drastic; just patch in the symbols monospaced and leave the font as it was (i.e. proportional). But which width shall the symbols be scaled to? The i or the M? Or in between?
It also would break the property that all Nerd Font Mono fonts can be installed in terminals that only support monospaced fonts (like Gnome Terminal). So that is not really a solution.

@Finii Finii closed this as completed Dec 6, 2022
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants