ToxicFrog / Ligaturizer

Programming Fonts with Ligatures added (& a script to add them to other fonts)
GNU General Public License v3.0
2.19k stars 112 forks source link

New Pipe operator? #57

Closed chrisvacc closed 5 years ago

chrisvacc commented 5 years ago

In R (statistical programming language) pipes are written as %>% which look horrid. Is there any way to add support for this in the font, or explain to me how I might be able to do it myself? Btw, this font creator is amazing. I always recommend it my friends.

ToxicFrog commented 5 years ago

All this tool does is copy ligatures from Fira Code into other fonts, There's no ligature for %>% in Fira Code, so Ligaturizer has no way of adding it.

If there's a different font that has that ligature, the ability to add ligatures from different fonts is something I've wanted to add for a while (#22) and just haven't had time to work on.

I'm glad you're enjoying it otherwise :)

chrisvacc commented 5 years ago

Yea, there’s definitely a way to add any lig you want… you need FontForge, Fontlab, or Glyphs which all allow you to make your own font.

https://en.wikipedia.org/wiki/FontForge with that you can add any ligature and symbol you want… I’ve just never used it

But okay… I’m sure you know this but for anyone reading, almost all modern fonts have ligatures. Liguatures are used for example:

https://i.imgur.com/pUlPBkb.png

But programmers who want to make programming fonts repurpose the ligature feature in font creation tools. You can do that in FontForge, etc I just don’t know how to do it. You would just make the ligature you want and paste in the symbol.

ToxicFrog commented 5 years ago

Yes, Fontforge can be used to add new ligatures to a font, and in fact that's what Ligaturizer uses to do all the font manipulation. But the whole point of Ligaturizer is doing this automatically by patching them in from an existing font (currently just Fira Code). The fonts in the release package weren't hand-made, they were automatically created by the Ligaturizer script.

Like I said, if there's an existing %>% ligature in another font I'd be fine with adding a feature that lets Ligaturizer copy ligatures from other fonts as well, although I may not have time to work on it anytime soon.

chrisvacc commented 5 years ago

yea, i use the Ligaturizer with Courier New (my favorite font)… but what i mean is… lets say we took Fira Code and edited it in FontForge, and added whatever Ligs we wanted. Then used that altered Fira Code and used it as the base.

ie take Fira Code… add out own %>% pipe, then use that as the new base t

On Dec 26, 2018, at 7:13 AM, Ben Kelly notifications@github.com wrote:

Yes, Fontforge can be used to add new ligatures to a font, and in fact that's what Ligaturizer uses to do all the font manipulation. But the whole point of Ligaturizer is doing this automatically by patching them in from an existing font (currently just Fira Code). The fonts in the release package weren't hand-made, they were automatically created by the Ligaturizer script.

Like I said, if there's an existing %>% ligature in another font I'd be fine with adding a feature that lets Ligaturizer copy ligatures from other fonts as well, although I may not have time to work on it anytime soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ToxicFrog/Ligaturizer/issues/57#issuecomment-449958083, or mute the thread https://github.com/notifications/unsubscribe-auth/AIR4fx35BTImURmPTVTNnkWj1TSYY__Nks5u82frgaJpZM4ZfrhB.

ToxicFrog commented 5 years ago

In that case you could just take your edited version of Fira Code, replace the default one, edit ligatures.py to add the new ligature, and run Ligaturizer to add the new ligature to all the derived fonts -- no need for any changes to Ligaturizer. But as far as I know such an edited version of FC doesn't exist.

chrisvacc commented 5 years ago

On Dec 26, 2018, at 11:59 AM, Ben Kelly notifications@github.com wrote:

such an edited version of FC doesn't exist.

Yes, the edited FC would have to be made, which is where FontForge comes in. It allows you to edit fonts. So you just put the Ligs on Fira Code.

ToxicFrog commented 5 years ago

As I keep saying, I have neither the skill nor the interest to create new ligatures ex nihilo. Furthermore, even if I did, it would be outside the scope of this project. If you want to do so, or know someone who does, there's nothing stopping you from making those edits yourself and then feeding your edited copy of Fira Code to Ligaturizer.

chrisvacc commented 5 years ago

I get it.. when I say ‘you’ I dont mean YOU. I mean a general ‘you,’ In other words ‘if someone wanted to do that, you’d have to do X.’ I plan on looking into this after a couple other projects are done.

On Dec 26, 2018, at 12:13 PM, Ben Kelly notifications@github.com wrote:

As I keep saying, I have neither the skill nor the interest to create new ligatures ex nihilo. Furthermore, even if I did, it would be outside the scope of this project. If you want to do so, or know someone who does, there's nothing stopping you from making those edits yourself and then feeding your edited copy of Fira Code to Ligaturizer.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ToxicFrog/Ligaturizer/issues/57#issuecomment-449995667, or mute the thread https://github.com/notifications/unsubscribe-auth/AIR4f9bUiSj_4vF7jTAApBach_7_c4uNks5u8645gaJpZM4ZfrhB.

chrisvacc commented 5 years ago

Hey buddy, hope you had a good new year.. also, again i hoe you weren’t pissed. I was just explaining the process, not implying that you should do it. This is a great script so you’ve done enough work on it, I’m still trying to figure out how to make the base font in FF but once I do I’ll send it to you and if you have requests for specific ligs let me know

On Dec 26, 2018, at 12:13 PM, Ben Kelly notifications@github.com wrote:

As I keep saying, I have neither the skill nor the interest to create new ligatures ex nihilo. Furthermore, even if I did, it would be outside the scope of this project. If you want to do so, or know someone who does, there's nothing stopping you from making those edits yourself and then feeding your edited copy of Fira Code to Ligaturizer.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ToxicFrog/Ligaturizer/issues/57#issuecomment-449995667, or mute the thread https://github.com/notifications/unsubscribe-auth/AIR4f9bUiSj_4vF7jTAApBach_7_c4uNks5u8645gaJpZM4ZfrhB.