generateVariationFont >> ResourceWarning: unclosed file



  • I am using generateVariationFont to generate a variation font. The files appear to be generating correctly, but I am getting a lot of ResourceWarning: unclosed file tracebacks:

    Using the sample from https://robofont.com/documentation/how-tos/creating-variable-fonts/ with my own designspace

    import variableFontGenerator
    
    desingSpacePath = 'test-vf.designspace'
    varFontPath = 'test-vf.ttf'
    
    p = variableFontGenerator.BatchDesignSpaceProcessor(desingSpacePath)
    p.generateVariationFont(varFontPath)
    

    dumps this traceback (ignore the .fea warning)

    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=239>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=241>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=239>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=241>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=241>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=243>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=241>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=243>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=243>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=245>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=243>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=245>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=245>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=247>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=245>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=247>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=247>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=249>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=247>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=249>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=249>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:136: ResourceWarning: unclosed file <_io.BufferedReader name=251>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/compiler.py:223: UserWarning: Found non existing included feature file (features/full.fea). This will be ignored
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=249>
    /Applications/RoboFont.app/Contents/Resources/lib/python3.7/fontCompiler/ttfCompiler.py:571: ResourceWarning: unclosed file <_io.BufferedReader name=251>
    


  • Version 3.5b (build 2007102200)

    Mac OS Catalina 10.15.7


  • admin

    which RF version?


Log in to reply