@@ -151,23 +151,23 @@ def build_variable_fonts(designspace, *steps):
151151
152152 print (f"[{ familyName } ] Done: { file_path } " )
153153
154- # print(f"[{familyName}] Compiling CFF2")
155- # file_path_cff2 = (OUTPUT_DIR / file_stem).with_suffix(f".otf")
154+ print (f"[{ familyName } ] Compiling CFF2" )
155+ file_path_cff2 = (OUTPUT_DIR / file_stem ).with_suffix (f".otf" )
156156 #Do not optimize, because we have to do it again after autohinting.
157- # varFontCFF2 = ufo2ft.compileVariableCFF2(designspace,
158- # inplace=True,
159- # useProductionNames=True,
160- # optimizeCFF=ufo2ft.CFFOptimization.NONE,
161- # )
157+ varFontCFF2 = ufo2ft .compileVariableCFF2 (designspace ,
158+ inplace = True ,
159+ useProductionNames = True ,
160+ optimizeCFF = ufo2ft .CFFOptimization .NONE ,
161+ )
162162
163- # print(f"[{familyName}] Adding STAT table")
164- # styleSpace = classes.Stylespace.from_file(INPUT_DIR / "STAT.plist")
165- # lib.apply_stylespace_to_variable_font(styleSpace,varFontCFF2,{})
163+ print (f"[{ familyName } ] Adding STAT table" )
164+ styleSpace = classes .Stylespace .from_file (INPUT_DIR / "STAT.plist" )
165+ lib .apply_stylespace_to_variable_font (styleSpace ,varFontCFF2 ,{})
166166
167- # print(f"[{familyName}] Saving")
168- # varFontCFF2.save(file_path_cff2)
167+ print (f"[{ familyName } ] Saving" )
168+ varFontCFF2 .save (file_path_cff2 )
169169
170- # print(f"[{familyName}] Done: {file_path_cff2}")
170+ print (f"[{ familyName } ] Done: { file_path_cff2 } " )
171171
172172if __name__ == "__main__" :
173173 parser = argparse .ArgumentParser (description = "build some fonts" )
0 commit comments