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

Reform PowerlineExtra sizing #1123

Merged
merged 2 commits into from
Feb 15, 2023
Merged

Reform PowerlineExtra sizing #1123

merged 2 commits into from
Feb 15, 2023

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Feb 12, 2023

Description

[why]
The Powerline extra glyph sizing is not really clear.

[how]

  • Make the triangulars 1 cell wide, as for example Iosevka also does.
  • Make the Legos 2 cell wide with pa scaling to make them look nicer.
  • Make the Hexagons 2 cells wide and keep their aspect ratio if possible.
  • Make small and big Squares also 2 cell wide and keep their aspect ratio
    of possible.

For the small and big Squares add a tiny bit of border (negative
overlap), because they have no smooth border line over their open and
closed squares, and that might look strange if some touch and some dont.

Fixes: #1106

Requirements / Checklist

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)

Will follow

@Finii Finii added this to the v3.0.0 milestone Feb 13, 2023
@djdv
Copy link

djdv commented Feb 15, 2023

Opinions?

Just responding to reiterate my comment from the issue, in regards to triangle widths.
A neutral +0 on it, since I'd personally be fine with either 1 cell or 2.
Since the pre-patched font already does 1 cell this change make sense.
But if anyone else has strong opinions on it, those can take precedence.

[why]
When patching the Symbols Only font we derive the baseline to baseline
distance through abnormal means, so the check fails.

[how]
Set expected baseline to baseline value explicitely for the Symbols Only
font.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The Powerline extra glyph sizing is not really clear.

[how]
Make the triangulars 1 cell wide, as for example Iosevka also does.
Make the Legos 2 cell wide with pa scaling to make them look nicer.
Make the Hexagons 2 cells wide and keep their aspect ratio if possible.
Make small and big Squares also 2 cell wide and keep their aspect ratio
of possible.

For the small and big Squares add a tiny bit of border (negative
overlap), because they have no smooth border line over their open and
closed squares, and that might look strange if some touch and some dont.

Fixes: #1106

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii force-pushed the feature/change-powerline-scaling branch from 6ce79ed to ce33e9c Compare February 15, 2023 20:06
@Finii Finii marked this pull request as ready for review February 15, 2023 20:06
@Finii Finii merged commit dfffc61 into master Feb 15, 2023
@Finii Finii deleted the feature/change-powerline-scaling branch February 15, 2023 20:18
@Finii
Copy link
Collaborator Author

Finii commented Feb 18, 2023

This is how narrow symbols look like (note this is an older font, it has the cell size wrong):

image

Font version 2.3.3

and I believe the decisions on what is wide and what not is ok:

Screenshot 2023-02-18 at 17 22 18

Font version 2.3.3-69

@Finii
Copy link
Collaborator Author

Finii commented Feb 18, 2023

The gaps (thin vertical lines) after the right hand side flames and waveform seen with iTerm2 is not visible in terminal:

Screenshot 2023-02-18 at 17 28 29

🤔

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.

Few Powerline Extra symbols in Caskaydia Cove Regular are monospaced
2 participants