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

Center icons with characters #98

Open
mdSlash opened this issue Aug 19, 2024 · 0 comments
Open

Center icons with characters #98

mdSlash opened this issue Aug 19, 2024 · 0 comments
Labels
glyph rendering Adjust icon rendering
Milestone

Comments

@mdSlash
Copy link
Member

mdSlash commented Aug 19, 2024

Describe the bug
The icons aren't centered with the characters.

Expected behavior
Icons should be center-aligned with the characters.

Additional context
If an icon takes up more than one cell, some terminals may truncate or shrink it to fit. Others might display it as-is.

For example, Kitty terminal may render icons that span multiple cells as small or truncated. In this case, the issue isn't with IconicFonts but with the terminal itself. You might need to use a different terminal or contact the developer.
image

On the other hand, terminals that handle glyphs differently, such as Alacritty, align the icons perfectly with characters.
image

To address this, one solution could be to create two font variants: one with an icon centered within a single cell and another with an icon centered across two cells, to fit different terminal rendering styles

Screenshots

one cell:
image

two cells:
image

@mdSlash mdSlash added the glyph rendering Adjust icon rendering label Aug 19, 2024
@mdSlash mdSlash pinned this issue Aug 19, 2024
@mdSlash mdSlash added this to the v1.2.0 milestone Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
glyph rendering Adjust icon rendering
Projects
None yet
Development

No branches or pull requests

1 participant