Creating additional glyph for existing google font

Hi, I stumbled on a problem and thought here is an excellent place to find a solution.

Namely, I needed to create an additional glyph for Martel Font (it is google font) because it lacked in sacute glyph (ś) for Polish language. Creating additional symbol was reasonably easy. However, when I tried to export the new file with this added glyph, I got this kind of notification:

Error: “Lookup type different from previous rules in this lookup block” in Feature abvs in line: 28Error: “Lookup type different from previous rules in this lookup block” in Feature abvs in line: 28

Not sure where is the problem and what I can do now because I am a fairly new glyph app user. Could you help me with that?

I really appreciate any help you can provide.

Did you have access to the source files? Or did you open the compiled OTF?

abvs is a feature you would typically see in a font for South Asian or Southeast Asian scripts. Consider reducing the new font to just Latin, export it with a different name (e.g. Martel Latin) and switch to it whenever you set Latin text. Use the original Martel for the parts of your layout set in complex scripts.

I opened the compiled OTF file.
What do you exactly mean by: “Use the original Martel for the parts of your layout set in complex scripts.”?

You can download the source file in .glyphs format from GitHub - typeoff/martel: Martel, a font development project for the Devanagari script.

Ok, so I started my work from the beginning on this source file. I first deleted spare glyphs in eastern languages, then generate sacute, and after that, save everything with the new name. However, when I tried to export OTF i got now, this kind of error:

Error: “Glyph “iMatra” not in font.” in Class DevaIMatras in line: 1
Error: “Glyph “deva” not in font.” in Class DevaIMatras in line: 1

You have to rebuild the OpenType features and delete classes you don’t need. I would perhaps try to delete all OT features and let Glyphs build them for you based on glyph names. Check Features, Part 1: Simple Substitutions | Glyphs

1 Like

Thank you for all your help. I will check this solution.

Ok, so now I am one step closer. :slight_smile: I already built the new version of Martel, which contain “ś”, and I disable automatic alignment so I can change the sidebearing and make it look better, but something strange happened.
In glyphs kerning pairs looks nice:


but after installing this new font using Suitcase (from Extensis), it looks like this in illustrator:

That looks like a font caching bug. Rename the font family (you are required to do so anyway by the license), use the Adobe fonts folder for Adobe apps, and see the eliminating font caching tutorial for other apps.

But why do you think you need to disable automatic alignment?

The new glyph generated had spacing that I don’t like because it had too big right sidebearing. That’s why I turned off auto-alignment and change the value to a desirable one and then switch it on again.

I suppose It had to be some kind of a bug because, without this manipulation, I could not change values. And today, I can, and what is more, the glyph has a different RSB than when I saved G file yesterday. :slight_smile:

Unfortunately, it still looks like there is too much space on the right :frowning:


I even check it on another machine.

can you send me your .glyphs file? (to support at this domain (without www or forum))

Yes ofcourse. I will do this.

Please check the width of the letter in all masters. Click the three ‘n’ buttons in the toolbar to switch between them.

And original file is not set up very well. Some accented glyphs use outlines, the ones that use components, don’t use anchors and no automatic alignment. Please have a look at: Diacritics | Glyphs

Hi, Georg thank you for your advice. I took the original file and focused mainly on the missing glyph. I did not pay much attention if other glyphs are ok (I just assumed they would be ;D). Now, I will follow your tip and check how it works.