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

I cant get ligatures working #56

Closed
nilsi opened this issue Feb 27, 2024 · 1 comment
Closed

I cant get ligatures working #56

nilsi opened this issue Feb 27, 2024 · 1 comment

Comments

@nilsi
Copy link

nilsi commented Feb 27, 2024

I installed the latest icons:

curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v2.0.5/sketchybar-app-font.ttf -o $HOME/Library/Fonts/sketchybar-app-font.ttf

I use kitty as a terminal.

Now to the problem: I can't add any new icons from the font book. I tried writing for example :slack: but it does not render the icon or show up in the bar. I also tried copying from the font book without a result.

I don't understand why this is not working since the icons are in the font book and the terminal supports ligatures. Any ideas would be appreciated.

@nilsi nilsi changed the title I cant get ligatures is not working I cant get ligatures working Feb 27, 2024
@kvndrsslr
Copy link
Owner

The font has been tested in the context of sketchybar. While it should indeed work anywhere with ligature support it arguably abuses the concept of ligatures. A quick search in kitty surfaced this issue which explains it:
kovidgoyal/kitty#7142

So without looking into the code, one of the following happens:

  1. kitty renders the symbol but only at (100/ligature.length)% - barely visible
  2. due to the implications of kittys behavior the developer implemented a max viable ligature length and any ligatures over that length just won't be considered for rendering

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

No branches or pull requests

2 participants