Fix https://github.com/fontforge/fontforge/issues/785