kvndrsslr / sketchybar-app-font

A symbol font for sketchybar, initialized with the symbols from simple-bar
Creative Commons Zero v1.0 Universal
167 stars 62 forks source link

How to Obtain a ttf #3

Closed n4chh closed 1 year ago

n4chh commented 1 year ago

I have a question, how should I process all the svg files i have added and generete a new .ttf file ?

kvndrsslr commented 1 year ago

This is a node package, therefore:

npm i 
npm run build
n4chh commented 1 year ago

I have add some icons for my pentesting tools and it's working awesome. I would like to know how is this actually works, because I want to use all this icons and use it to be displayed on terminal, by mapping every icon in the kitty.conf file, but the problem is that if I use the :program name: notation, it does not work. How it is actually working and why skecthy bar identifies the icons by tipping :name: in stead of interprete that as an string?

kvndrsslr commented 1 year ago

@iortego42 This font (ab)uses a feature known as font ligatures. You might know that from other fonts like JetBrains Mono, where == will display as an extra long =, or from traditional typesetting where letter combinations like ff are rendered specially. So this should actually also work in kitty if you have enabled font ligatures in your configuration!

kvndrsslr commented 1 year ago

It seems like ligatures should be enabled in kitty per default https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.disable_ligatures

Although if it does not work with ligatures enabled I'm not sure where to start troubleshooting tbh.

n4chh commented 1 year ago

Thank's for answering! Yeah, by default kitty enable ligatures, by the way I have also enable it in my configuration file, now the problem is that I need to make kitty to recognise the sketchy bar font, because it is not doing it. Thank you very much!