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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Oct 30, 2024

Description

WILL BE FILLED LATER

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)

[why]
The Powerline glyphs can have strange width if a non-mono font is
created. The width of the glyphs is then based on the symbol font which
is not always useful. Some get a very slim advance width.

[how]
Temporarely turn on '--mono' handling of the glyphs if a Powerline
codepoint is processed.

Fixes: #1695

Signed-off-by: Fini Jastrow <[email protected]>
@Finii Finii added this to the v3.3.0 milestone Oct 30, 2024
@Finii Finii force-pushed the bugfix/Powerline-in-square-fonts branch from 0ccfab1 to a539be0 Compare October 30, 2024 19:42
[why]
When we have a 'stubby' font, i.e. one with a square-ish cell the 'pa'
scaled Powerline icons are just too big.

Normally 'stubby' fonts prevent scaling into 2 cells - with 'xy'
scaling.

For the Powerline glyphs - which are fitted into the cells - we want to
avoid scaling so big and the Powerline glyphs should keep a square or
slimmer appearance.

[how]
Enforce the '1' scaling rule for powerline glyphs in 'stubby' fonts.

Relocate some code to have this in the right spot before anything is
done with the scale options.

Signed-off-by: Fini Jastrow <[email protected]>
@Finii Finii force-pushed the bugfix/Powerline-in-square-fonts branch from a539be0 to 1210d88 Compare October 30, 2024 19:46
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