#NEWLINE# @ staticmethod #NEWLINE# def _get_font_latin_attributes( font ) : #NEWLINE# #INDENT# attributes = [ ] #NEWLINE# if ( not font ) : #NEWLINE# #INDENT# return attributes #NEWLINE# #UNINDENT# if ( font [ 'name' ] is not None ) : #NEWLINE# #INDENT# attributes . append ( ( 'typeface' , font [ 'name' ] ) ) #NEWLINE# #UNINDENT# if ( font [ 'pitch_family' ] is not None ) : #NEWLINE# #INDENT# attributes . append ( ( 'pitchFamily' , attributes [ 'pitch_family' ] ) ) #NEWLINE# #UNINDENT# if ( font [ 'charset' ] is not None ) : #NEWLINE# #INDENT# attributes . append ( ( 'charset' , font [ 'charset' ] ) ) #NEWLINE# #UNINDENT# return attributes