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

Fix Powerline glyphs position and size in some cases #1727

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Oct 30, 2024

Description

Correct right aligned glyphs in proportional fonts (i.e. --variable).

Only very few icons are right aligned, all Powerline glyphs.

Requirements / Checklist

  • Read the Contributing Guidelines
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan.
    Issue number where discussion took place: #xxx
  • If this contains a font/glyph add its origin as background info below (e.g. URL)
  • Verified the license of any newly added font, glyph, or glyph set. License is: xxx

What does this Pull Request (PR) do?

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

@Finii Finii added this to the v3.3.0 milestone Oct 30, 2024
@Finii Finii force-pushed the bugfix/Powerline-in-square-fonts branch 2 times, most recently from a539be0 to 1210d88 Compare October 30, 2024 19:46
@Finii
Copy link
Collaborator Author

Finii commented Nov 13, 2024

Comparing SymbolsOnly font for 4.14.7 (before this PR) and 4.14.8 (with this PR):

Nerd Font Mono

NO CHANGE

image

Nerd Font (which is secretly Propo)

image

Examples (left is 4.14.7, right 4.14.8)

image
image
image
image
image
image

Not exactly what I wanted I guess.

[why]
The right align check does produce wrong results if a proportional font
is generated.

[how]
Just skip the aspect ratio alignment re-check and leave the work to the
proportional font shifting that is done afterwards anyhow.

Fixes: #1695

Signed-off-by: Fini Jastrow <[email protected]>
@Finii Finii force-pushed the bugfix/Powerline-in-square-fonts branch from 1210d88 to 3c2a10a Compare November 13, 2024 15:05
@Finii
Copy link
Collaborator Author

Finii commented Nov 13, 2024

Now only the right aligned icons are different, and the original / proportional width is kept.

image

Left: pre PR, right after PR, changed glyphs marged with blue tag

I'm much more comfortable with this change,which is minimal. Making the Powerline glyphs monospaced, albeight I believe that is what they ought to be, that might break other people's setup, and noone ever complained.

@Finii Finii marked this pull request as ready for review November 13, 2024 15:08
@Finii Finii added the Bug fix label Nov 13, 2024
@Finii
Copy link
Collaborator Author

Finii commented Nov 13, 2024

Checked with SymbolsOnly and CaskaydiaCoveNerdFontPropo-Regular.ttf

@Finii Finii merged commit f530e22 into master Nov 13, 2024
4 checks passed
@Finii Finii deleted the bugfix/Powerline-in-square-fonts branch November 13, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant