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

Inconsolata powerline characters don't line up correctly #992

Closed
3 tasks done
acarl005 opened this issue Nov 7, 2022 · 14 comments
Closed
3 tasks done

Inconsolata powerline characters don't line up correctly #992

acarl005 opened this issue Nov 7, 2022 · 14 comments

Comments

@acarl005
Copy link

acarl005 commented Nov 7, 2022

🗹 Requirements

  • I have searched the issues for my issue and found nothing related and/or helpful
  • I have searched the FAQ for help
  • I have searched the Wiki for help

🎯 Subject of the issue

Experienced behavior:

Powerline characters in Inconsolata Nerd Font do not line up properly. This is happening in multiple terminals, e.g.

Alacritty:

Screenshot 2022-11-04 at 9 29 44 PM

Terminal.app:

Screenshot 2022-11-04 at 9 29 45 PM

Expected behavior:

The powerline characters should line up as they do with Bitstream Vera Mono Nerd Font:

Screenshot 2022-11-04 at 9 30 44 PM

Example symbols:

 andy  ﱮ ~/s/ls-go    master []   v1.19.2 $

🔧 Your Setup

  • Which font are you using (e.g. Anonymice Powerline Nerd Font Complete.ttf)?
    • Inconsolata Nerd Font Mono
    • brew install --cask font-inconsolata-nerd-font
  • Alacritty or Terminal.app (the included terminal with MacOS)
  • MacOS Venture 13.0
@acarl005 acarl005 changed the title Inconsolata Inconsolata powerline characters don't line up correctly Nov 7, 2022
@Finii
Copy link
Collaborator

Finii commented Nov 7, 2022

The cask is outdated...

image

You can try to (manually) install the fonts from the (v2.2.2) release page:
https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/Inconsolata.zip

Hmm, but even with 2.2.2 they DO look somehow weird, not as bad, but still:

image


Link to #989, we need to update a lot of the casks. Who maintains them 😬

@Finii
Copy link
Collaborator

Finii commented Nov 7, 2022

Oh, my bad... I used Inconsolata which gets the powerline symbols from some other font. When I select the correct font it looks good:

inconsolata

Also checked kitty, and there it looks ok.
It = v2.2.2.

@NikitaNaumenko
Copy link

Same issue, I download font from release page https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/iA-Writer.zip and install it manually,
OS : MacOS
Term: Alacritty
Font: iM Writing Mono S Regular Nerd Font Complete
image

But it looks better with iM Writing Mono S Regular Nerd Font Complete Mono
image

@Finii
Copy link
Collaborator

Finii commented Nov 15, 2022

Hmm, can not reproduce...

$ curl -LO https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/iA-Writer.zip
$ unzip -d iMwriting iA-Writer.zip
$ cp iMwriting/iM\ Writing\ Mono\ S\ Regular\ Nerd\ Font\ Complete.ttf ~/.local/share/fonts
$ fc-list | grep -i writ                                                                   
/home/fini/.local/share/fonts/iM Writing Mono S Regular Nerd Font Complete.ttf: iMWritingMonoS Nerd Font:style=Regular

Edit ./alacritty.yml:

# Font configuration
font:
  normal:
    family: iMWritingMonoS Nerd Font
    style: Regular

Run

$ ~/git/alacritty/target/release/alacritty --config-file ./alacritty.yml

image

(The font in tilix is Delugia).

My alacritty is not really up to date, it's alacritty 0.11.0-dev (589c1e9) I built some months(?) ago.

Sure you entered the correct family name in your config?

Same goes to @acarl005: Please show your alacritty config and relevant fc-list output.

@NikitaNaumenko
Copy link

NikitaNaumenko commented Nov 15, 2022

First of all, thanks for your reply and your help!
My alacritty version is:

alacritty -v
Created log file at "/var/folders/bm/bzygt4_173vct2xrvn56zk940000gn/T/Alacritty-770.log"
[0.000003666s] [INFO ] [alacritty] Welcome to Alacritty
[0.000149458s] [INFO ] [alacritty] Version 0.11.0 (8dbaa0b)
[0.000978000s] [INFO ] [alacritty] Configuration files loaded from:
"/Users/nikitanaumenko/.config/alacritty/alacritty.yml"
"/Users/nikitanaumenko/.config/alacritty/dracula.yml"
[0.077662833s] [INFO ] [alacritty] Running on Apple M1
[0.077702625s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.080178583s] [INFO ] [alacritty] Display scale factor: 2
[0.081813583s] [INFO ] [alacritty] Cell size: 18 x 39
[0.081833208s] [INFO ] [alacritty] Padding: 0 x 0
[0.081844333s] [INFO ] [alacritty] Width: 1600, Height: 1200
[0.081921375s] [INFO ] [alacritty] PTY dimensions: 30 x 88
[0.083628500s] [INFO ] [alacritty] Initialisation complete
[0.118516833s] [INFO ] [alacritty] Padding: 0 x 0
[0.118549875s] [INFO ] [alacritty] Width: 1600, Height: 1200
[2.359127041s] [INFO ] [alacritty] Goodbye

I repeat all your steps:
fc-list output

➜ fc-list | grep -i writ
Fontconfig warning: ignoring UTF-8: not a valid region tag
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Regular
/Users/nikitanaumenko/Library/Fonts/iM Writing Mono S Regular Nerd Font Complete Mono.ttf: iMWritingMonoS Nerd Font Mono:style=Regular
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Semibold
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Condensed Light
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Condensed Bold
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Condensed
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Bold
/Users/nikitanaumenko/.local/share/fonts/iM Writing Mono S Regular Nerd Font Complete.ttf: iMWritingMonoS Nerd Font:style=Regular
/System/Library/Fonts/Supplemental/AmericanTypewriter.ttc: American Typewriter:style=Light

My alacritty config is:
image

Same screenshot with Mono:
image

@NikitaNaumenko
Copy link

pfff I dont know what happened, but now it works better, I do nothing, just opened my laptop, and I cannot reproduce it any more

image

@acarl005
Copy link
Author

Looks perfect for me on all terminal ems after installing v2.2.2 from release page! Thanks @Finii! It looks like the long-term resolution here is for the Homebrew packages to be updated more easily. I understand maintaining a bunch of fresh packages on various different registries is a lot of work..

@Finii
Copy link
Collaborator

Finii commented Nov 17, 2022

@NikitaNaumenko

I dont know what happened, but now it works better

It's called self healing ;-)

Thanks for notifying back!

@acarl005 We create the needed files already, it would be not too much work to automate the PRs to update the casks. But every item takes power and time. It definitively increased in prio now.
I tried to list all packag-eteers here: #881 (reply in thread) and Homebrew is one of the most easy ones to update.
Also thanks for your information.

@hotsno
Copy link

hotsno commented Jan 20, 2023

I'm having this issue on Alacritty and iTerm. I tried v2.3.1 of Meslo and iA-Writer.

image

image

@Finii
Copy link
Collaborator

Finii commented Jan 20, 2023 via email

@hotsno
Copy link

hotsno commented Jan 20, 2023

I restarted my computer after reading that someone above just had their issue resolved after closing their laptop... and it magically became better now. Maybe a macOS thing.

image

The "blur" part of my prompt (the leftmost part of my prompt in the screenshots above) is still having issues in iTerm, though. For the time being I just disabled it.

Update: I just turned on the "anti-alias" setting in iTerm and now the angle is a lot smoother than in this screenshot.

@hotsno
Copy link

hotsno commented Jan 20, 2023

I just realized, I think I was trying v2.2.2 in the screenshot above. I just tried v2.3.1 and restarted my computer and am having the same issues as in the initially.

Sorry for spamming the thread.

@Finii
Copy link
Collaborator

Finii commented Mar 10, 2023

I believe all reports were using older fonts and proved to be resolved with 2.3.3

@Finii Finii closed this as completed Mar 10, 2023
@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 Sep 11, 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

4 participants