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

Powerline symbols are not working correctly in Noto Sans Mono #347

Closed
shuwens opened this issue May 2, 2019 · 17 comments
Closed

Powerline symbols are not working correctly in Noto Sans Mono #347

shuwens opened this issue May 2, 2019 · 17 comments

Comments

@shuwens
Copy link

shuwens commented May 2, 2019

It appears the powerline symbols are not working correctly in Noto Sans Mono. I am sure because in FuraCode it works fine.

Setup

  • Noto Sans Mono Nerd Font Complete
  • alacritty
  • macOS Mojave

Screen Shot 2019-05-02 at 12 08 34 AM

From the screenshot we can see that the powerline symbols on the right are not working.

@ryanoasis
Copy link
Owner

Still have the issue? It looks strange. I see that the glyphs are in the font. Would need someone to try to replicate the issue..

@shuwens
Copy link
Author

shuwens commented Jun 21, 2019

Yes, the problem is still there...

@jtr860830
Copy link

Me either.
My environment is Arch + Gnome Terminal.

@num3rical
Copy link

I'm encountering the same problem. All other Nerd Fonts seem to be working fine with it, just not this one.

@doraeric
Copy link

Spending hours to debug, finally realized it's the font's problem...
My environment is manjaro. It's the default font for gnome terminal.

@valentino-sm
Copy link

Three years passed.
The problem still there.

@Finii
Copy link
Collaborator

Finii commented May 14, 2022

Took the 2.2.0 Release Candidate of Noto

Installed ~Downloads/Noto/Noto Sans Mono Regular Nerd Font Complete.ttf

Font not even selectable in Gnome Terminal (of Ubuntu 22.04), because it is not monospaced.

Installed ~Downloads/Noto/Noto Sans Mono Regular Nerd Font Complete Mono.ttf

The width is wrong but the right hand side powerline stuff works:

image

This does not really show what you sayt the problem is.
-> There is a problem with Noto Sans Mono NF (and all Noto iirc), but that is not the powerline symbols missing.

Can it be that you have the Noto Sans Mono (unpatched) also installed? Ubuntu has all these 1000 Noto fonts installed, and the first thing I do is removing them all. Because it could be an interaction of Noto Sans Mono with Noto Sans Mono Nerd Font, unfortunately.

See also

Edit: Correct link to Noto release
Edit: Found out I used the wrong release 🙄
Edit: 2.2.0-RC is the same

@valentino-sm
Copy link

valentino-sm commented May 14, 2022

Thank you for a big review.

Can it be that you have the Noto Sans Mono (unpatched) also installed? Ubuntu has all these 1000 Noto fonts installed, and the first thing I do is removing them all. Because it could be an interaction of Noto Sans Mono with Noto Sans Mono Nerd Font, unfortunately.

It's not interaction definitely.
I use self-patched fonts that fixes the problem on clean arch

parallel -j$(nproc) python "$srcdir/$_patcher" --glyphdir "$srcdir/glyphs/" -q -c -s {} -out "$srcdir/patched" &> /dev/null ::: "$srcdir/NotoSansMono"/*.ttf

Works like a charm. -s flag doesn't make sense

@Finii
Copy link
Collaborator

Finii commented May 14, 2022

With interaction between patched and unpatched ... I mean the font grouping. Which is broken in master, and terminals can mix up patched and unpatched fonts with the bug :-( There is a PR that fixes the font grouping, forget which one. At least it is in #723 if you specify --makegroup when patching.

I still do not know how your issue looks like. Maybe you should add a screenshot.

Fixed the 'too spacy' Noto Mono Blah just now ;-) in #830

@valentino-sm
Copy link

valentino-sm commented May 14, 2022

I still do not know how your issue looks like. Maybe you should add a screenshot.

Exactly the same as first screenshot
Related to all NotoSansMono Complete family in repo
p.s. Sorry I'm incompetent to confirm that #830 fixes this given that font-patcher works correctly for me

screenshot_2022-05-15_03-45-09_033905023

@arebassa
Copy link

Does the #830 fix the issue? If it does, can I download the patched font from somewhere or do I have to build it myself?

Cheers!!

@Sebasos01
Copy link

I have this same problem using Alacritty on Arch Linux + KDE, I installed with pacman powerline and with yay (from the AUR) powerline-fonts-git.
Noto Sans (KDE's default font, at least in my case) makes the powerline "triangles" smaller.
Screenshot_20230202_121314
Using the "Noto Mono for Powerline" font solves the problem, although it is not my favorite font.
Screenshot_20230202_121335
At the moment I have not found something like "Noto Sans for Powerline".

@Finii
Copy link
Collaborator

Finii commented Feb 2, 2023

@Sebasos01

The upper image shows that you use an unspecified font. I guess it is not a Nerd Fonts font.
That font does not have individually scaled powerline symbols in it, so they are taken from some other font.
The mix of two different fonts might not mix well.

You can check this (please reply with result) via

$ fc-list ':charset=e0b0'

At least that is a theory.

You also do not specify which Nerd Font you installed. All Nerd Fonts are now in Arch Community, do not use the Nerd Fonts from AUR (they are most likely obsolete).

  • Please give package name and version with the Nerd Font you wanted to use
  • Enter the family name of that font into your alacritty config
  • Start via alacritty -vv and show reasults

@Finii
Copy link
Collaborator

Finii commented Feb 2, 2023

@Sebasos01 You probably want this package:
https://archlinux.org/packages/?sort=&repo=Community&q=-nerd+noto&maintainer=&flagged=

If you do not have that installed, install it.
Use that font family name specifically in your alacritty conf, do not leave it empty.

Edit: Add reply target user name

@Finii
Copy link
Collaborator

Finii commented Feb 2, 2023

@arebassa Just install the Nerd Fonts v2.3.3 release, it should be fixed.

@Sebasos01
Copy link

Sebasos01 commented Feb 3, 2023

@Finii Thanks, that package worked for me. I also installed other packages from the Arch Community and they also work fine. The problem was that I didn't know how to find the font family name lol, but it was just checking the output of fc-list ':charset=e0b0'.

@Finii Finii closed this as completed Feb 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

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 Aug 7, 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

9 participants