Possible to add ligatures to a font in italic only?

Hello, I’m adding a ligature to a font, but I need the ligature to work only when the text is in italic. Is it possible? Thanks!

Yes.

Thanks, mekkablue. How can I do it? I’d appreciate any pointers.

Are you keeping italic and upright in the same Glyphs file?

I’m actually not sure. I’m trying to add ligatures to this font: https://github.com/googlefonts/Inconsolata

Its Glyphs file doesn’t seem to include an italic style. I only found Regular and Bold in Font Info. Where should I start? Thanks!

That font does not have an italic style. If you want one, you’ll have to make it yourself. Usually italic and upright styles live in separate Glyphs files (since the outlines are rarely compatible). I suppose you might start by duplicating the existing file and skewing all the glyphs in the copy you’ve made.

I don’t know all the ins and outs of the SIL Open Font License, but you should read it carefully to make sure it’s okay to do the things you want to do to the font.

Thanks, psb6m! Is there a common open font that does come with an italic style? This is for an experiment at the moment. I’m not trying to distribute the font.

Lots, though I don’t know how many are made with Glyphs (which will, however, happily import UFOs). For example:

https://www.typewolf.com/google-fonts

https://www.theleagueofmoveabletype.com/

https://en.wikipedia.org/wiki/Category:Open-source_typefaces