ToxicFrog / Ligaturizer

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

Problem naming individual fonts in font collections #23

Closed foolnotion closed 6 years ago

foolnotion commented 6 years ago

Hi,

I was trying to ligaturize Microsoft's Consolas font, which comes as a collection of ttf files:

All the original ttf files have the same font name, "Consolas", however the liga versions have their names wrong: consola, consolai, consolab, consolaz instead of "Consolas", therefore the font no longer works as a collection.

ToxicFrog commented 6 years ago

At present it infers the font name from the filename, which usually works, but assumes that font collections use the <face>-<weight> naming scheme, e.g. Consolas-Regular.ttf and Consolas-Italic.ttf rather than consola.ttf and consoli.ttf.

I have a fix in the works that uses the metadata already present in the font and ignores the filename, I just keep getting preempted by non-programming stuff. I'll make sure it works properly with Consolas.

ToxicFrog commented 6 years ago

Fixed in 670d05e -- Consolas isn't included in the repo but I tested it locally with the Consolas family.