Can not export due to hinting problems (error 190)

Hi there, I am encountering this issue when I export my Chinese font. I didn’t select ‘auto hint’ when exporting, but I get this ‘The glyph XXX contains a lot hints (190). This can’t be exported.’ How can I solve this problem?

Check that glyph. Make sure the hints are visible (View menu > Show Hints).
You probably see allot gray bars. Press Cmd+A until all are highlighted and remove them.


I didn’t set any hinting before. What can I do with a glyph like this?

can you run this script in the Macro window with the glyph active in the edit view:

print(Layer.hints)

and post what shows up in the output area?

it shows:
()

Also for

for layer in Layer.parent.layers:
    for hint in layer.hints:
        print(layer.hints)

?

Traceback (most recent call last):
File “”, line 1
AttributeError: ‘NSKVONotifying_GSGlyph’ object has no attribute ‘hints’

Sorry, my script was wrong. I corrected the snippet.

can you send me the .glyphs file?

Yes, sure.

that is strange. I get this:

Not sure how that happened. But some glyphs look like this:

What can I do with glyphs like these?

I used Mekkablue’s script to remove TT hinting of these glyphs, and then I get my font exported. However, I wonder how those hundreds of TT hinting were added to some glyphs?

I have no idea.