Skip to content

Add powerline git, LN, lock symbols#5054

Merged
Tyriar merged 1 commit intoxtermjs:masterfrom
joelhockey:master
Jun 3, 2024
Merged

Add powerline git, LN, lock symbols#5054
Tyriar merged 1 commit intoxtermjs:masterfrom
joelhockey:master

Conversation

@joelhockey
Copy link
Copy Markdown

Symbols taken from https://github.com/powerline/fontpatcher/blob/develop/fonts/powerline-symbols.sfd

The original symbols use height and widith of approx 1060x2048, so I modified to be roughly 1000x1000 via:

fontforge -lang=ff -c 'Open($1); SelectAll(); UnlinkReference(); Scale(100, 50); Move(0, 300); Export("svg/%n-%e.svg");' powerline-symbols.sfd

Then I edited by hand to round values to approx 2 significant digits, and then used a script to convert relative SVG commands such as 'l', 'c', 's' to use only 'M', 'L' and 'C' and used expected format with comma separators rather than spaces, and divide all values by 1000 to map into a 1x1 space.

Symbols taken from https://github.com/powerline/fontpatcher/blob/develop/fonts/powerline-symbols.sfd

The original symbols use height and widith of approx 1060x2048, so I
modified to be roughly 1000x1000 via:

fontforge -lang=ff -c 'Open($1); SelectAll(); UnlinkReference(); Scale(100, 50); Move(0, 300); Export("svg/%n-%e.svg");' powerline-symbols.sfd

Then I edited by hand to round values to approx 2 significant digits,
and then used a script to convert relative SVG commands such as 'l',
'c', 's' to use only 'M', 'L' and 'C' and used expected format with
comma separators rather than spaces, and divide all values by 1000 to
map into a 1x1 space.
@joelhockey
Copy link
Copy Markdown
Author

@Tyriar or @jerch or anyone, is there a better way to request a review for a pull request?

@joelhockey
Copy link
Copy Markdown
Author

@meganrogge @sbatten who have committed to CustomGlyph.ts in the past

@jerch
Copy link
Copy Markdown
Member

jerch commented Jun 3, 2024

@joelhockey Imho @Tyriar wrote the custom glyph handling code, so he might be best to review it.

@Tyriar Tyriar added this to the 5.6.0 milestone Jun 3, 2024
@Tyriar Tyriar self-assigned this Jun 3, 2024
Copy link
Copy Markdown
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic! 👏

image

Zoomed:

image

Big letter spacing and line height:

image

@Tyriar Tyriar enabled auto-merge June 3, 2024 14:31
@Tyriar Tyriar merged commit baa4e1b into xtermjs:master Jun 3, 2024
@joelhockey
Copy link
Copy Markdown
Author

Thanks @Tyriar, would you also be able to review #4879 by @JasonXJ. We both work on ChromeOS Terminal app.

@Tyriar Tyriar modified the milestones: 5.6.0, 6.0.0 Jul 14, 2024
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

Successfully merging this pull request may close these issues.

3 participants