def saveOTF(font, destFile, glyphOrder, truetype=False):

    if truetype:
        compiler = compileTTF
    else:
        compiler = compileOTF
    otf = compiler(font, featureCompilerClass=RobotoFeatureCompiler,
                   kernWriter=RobotoKernWriter, glyphOrder=glyphOrder)
    otf.save(destFile)
Save a RoboFab font as an OTF binary using ufo2fdk.
dataset/ETHPy150Open google/roboto/scripts/lib/fontbuild/Build.py/saveOTF