#NEWLINE# def putnameIds( self , ttfont , platform = 3 ) : #NEWLINE# #INDENT# nameids = [ '1' , '2' , '4' , '6' , '16' , '17' , '18' ] #NEWLINE# for nameid in nameids : #NEWLINE# #INDENT# value = '' #NEWLINE# for name in ttfont [ 'name' ] . names : #NEWLINE# #INDENT# if ( ( str ( name . nameID ) == nameid ) and ( platform == name . platformID ) ) : #NEWLINE# #INDENT# value = ( name . string . decode ( name . getEncoding ( ) ) or '' ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# self . addToHeader ( 'id{}' . format ( nameid ) ) #NEWLINE# self . current_row . append ( value )