#NEWLINE# def genmetadata( familydir ) : #NEWLINE# #INDENT# metadata = FamilyProto ( ) #NEWLINE# metadata . name = inferFamilyName ( familydir ) #NEWLINE# metadata . designer = getDesigner ( familydir ) #NEWLINE# metadata . license = inferLicense ( familydir ) #NEWLINE# if check_monospace ( familydir ) : #NEWLINE# #INDENT# metadata . category = 'monospace' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# metadata . category = '' #NEWLINE# #UNINDENT# createFonts ( familydir , familydir ) #NEWLINE# inferSubsets ( familydir , metadata ) #NEWLINE# metadata . date_added = getToday ( ) #NEWLINE# return metadata