SOLVED Unopenable UFO from font.interpolate()



  • Hey there! I'm not sure if this is a bug or if I'm doing something wrong here, but font.interpolate() isn't working for me anymore. Here's a simple example:

    minFont, maxFont = AllFonts()
    intFont = NewFont()
    intFont.interpolate(.5, minFont, maxFont)
    

    The script runs with no errors and the new font opens up, but there are no glyphs showing in the UI. It can be saved, but then it can't be opened. I get this:

    *The document could not be opened. The file isn’t in the correct format. The required default glyph set is not in the UFO.*
    

    If I open up the UFO package and rename the glyphs.foreground directory to glyphs, then change the same value in layercontents.plist, then UFO will open.

    Any idea why this is happening?

    Thanks!
    Graham



  • Ah cool. Thank you!


  • admin

    This is already merged on fontParts and will be available in the next public beta and release.

    thanks!


  • admin

    this seems to be a fontParts problem and moving your issue to fontParts

    thanks!!

    continue here: https://github.com/robotools/fontParts/issues/419