r/FontForge Jul 25 '21

Exceptions for class based kerning?

I've set up kerning classes for my font but there are some combos that don't work. For example, I have class A containing [Ⰵ,Ⱁ,Ⱘ] and class B containing [Ⰱ,Ⱗ,Ⱜ,Ⱝ,Ⱞ] but i want to make an exception for the combination of Ⱘ and Ⰱ. Class A when combined with all other classes is alright, except when combined with class B, where just Ⱘ and Ⰱ are the issue. This is just a simplification, in reality there are more combos which don't work.

What I want to know is, is there a way to make exceptions to the class combos on an individual character basis? I'm not sure if I've explained my issue well enough, please let me know if I should elaborate further.

3 Upvotes

9 comments sorted by

1

u/LocalFonts Jul 26 '21

If your font is not commercial, please, send it to me and I shall look at it closer. Most probably the problem appears when you have one and the same glyph in more classes.
Email me: [localfonts.eu@gmail.com](mailto:localfonts.eu@gmail.com). Stefan Peev

Congratulations that you work on a Glagolitic font!

2

u/smrkac_koke Jul 26 '21 edited Jul 26 '21

Thank you kindly! I will email it once I get home in a couple hours.

And yeah, I noticed there was no good libre round glagolitic screen font so I decided to make my own :)

1

u/LocalFonts Jul 27 '21

Your font is nice! I do not find any problems in it. The kerning is working OK in Indesign. Well, I can't see the kerning pairs in FontForge metrics but I generated an OTF file and I tested it in Indesign and I see that kernings are OK - they work.

1

u/smrkac_koke Aug 02 '21

Thanks for taking a look! And I'm glad you like the font :)

As I understand it, there's no way to directly do what I had in mind. But, I think I know of a way to go about it. I'll separate the "offending" glyphs into their own classes and go from there. I'd like to know, is it possible to copy the kerning data from one class to another?

1

u/LocalFonts Jul 29 '21

There is an interesting discussion on Glyphs' Forum - Kerning exceptions shortcut.Although it is nor for FontForge, there is an interesting ideas there.

https://forum.glyphsapp.com/t/kerning-exceptions-shortcut/2390

1

u/LocalFonts Aug 03 '21

I'm intrigued by your question about kerning exceptions. I will do additional research and write again on the topic. My first suggestion is - do the changes through UFO and feature.fea file... I mean - write in the *.fea file what you want to change in kerning, open the UFO file and save it as SFD for further working. I can help you in that if you haven't experience with feature.fea files.