ofolis / consolig

Consolas with custom programming ligatures
SIL Open Font License 1.1
46 stars 2 forks source link

Letter "i" inside of word looks wrong (in Bold font) #26

Open DrPepperBianco opened 3 years ago

DrPepperBianco commented 3 years ago

Hello,

I currently had to recreate the font from scratch. I realized that the i insife words (like "config") looks wrong.

I then took an old commit, from last year, when I initially compiled the font. There the problem didn't appear.

This is built with commit #db254ea (from March 2021): image

This is built with commit #dba44d6 (from March 2020): image

The "i" in the newer commit looks odd. It is not bold, like the rest of the word.

DrPepperBianco commented 3 years ago

I forgot to mention this, I only have the problem in Visual Studio. In Visual Studio Code it seems to work correctly. But VS Code is not using bold font, so I'm not a 100% sure about that.

Also, I played a around a little in MS Word. The ligatures initially don't work there. You have to activate "Use Contextual Alternates": image

Also, the "i" thing only happens after "f", so it is the "fi" ligature. Maybe there is some way to deactivate that specific ligature? I assume it would be enough to just remove a file from the repository, that contains the "fi" ligature before building the project. But I have no clue, which one.

ofolis commented 3 years ago

Okay, after a little digging, I feel relatively confident that this is a result of the ligature substitutions only being at normal weight. I need to still create the ligatures for the bold typeface. Currently, the font swaps in regular weight glyphs into the bold font. This substitution logic extends to fi here.

I'm not going to close this in case I'm still missing something, but it is probably another dup of #8 .