#NEWLINE# def _get_font_id( self ) : #NEWLINE# #INDENT# if PY2 : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return '|' . join ( [ unicode ( self . options [ x ] ) for x in ( 'font_size' , 'font_name_r' , 'bold' , 'italic' ) ] ) #NEWLINE# #UNINDENT# except UnicodeDecodeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return '|' . join ( [ str ( self . options [ x ] ) for x in ( 'font_size' , 'font_name_r' , 'bold' , 'italic' ) ] )