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

Prompt separator does not align well when using nerd fonts from AUR #344

Closed
fikovnik opened this issue Nov 24, 2019 · 5 comments
Closed

Comments

@fikovnik
Copy link

I tried to use "MesloLGS Nerd Font" installed from AUR package nerd-fonts-meslo 2.0.0-1 and I get this one 1px line before the arrow in the prompt:

Screenshot_2019-11-24_13-54-16

I tried couple of other nerd fonts (all installed from AUR) and it is the same.

Using font Dejavu Sans Mono for powerline installed from ttf-dejavu-sans-mono-powerline package works well.

Would you know what is wrong? Thanks you!

@romkatv
Copy link
Owner

romkatv commented Nov 24, 2019

Some terminals are better than others at scaling fonts. You can try changing font size, using a different terminal, or a different prompt style.

@romkatv romkatv closed this as completed Nov 24, 2019
@lnicola
Copy link

lnicola commented Jan 27, 2020

@fikovnik I just ran into the same issue and switching from subpixel to to grayscale hinting fixed it:

image

image

It should be possible to do that for a specific font family and size, but I couldn't manage to get it working.

@romkatv
Copy link
Owner

romkatv commented Jan 27, 2020

Thanks for sharing, @lnicola. Perhaps it'll help someone else.

@lnicola
Copy link

lnicola commented Jan 27, 2020

@romkatv on a related note, the font selection instructions for Gnome Terminal are incomplete. They work for the font you recommend (MesloLGS NF), but the fonts on the Nerd Fonts package (at least the AUR one) don't show up in the font dialog.

See ryanoasis/nerd-fonts#318 for the explanation and a workaround.

@romkatv
Copy link
Owner

romkatv commented Jan 27, 2020

The instructions in the p10k readme are specifically for the recommended font. I wouldn't presume to write generic instructions that would work for any font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants