#NEWLINE# def get_kerning( self , c1 , c2 ) : #NEWLINE# #INDENT# key = ( c1 + c2 ) #NEWLINE# if ( key not in self . kerning ) : #NEWLINE# #INDENT# a = ( self . sizes [ c1 ] [ 0 ] + self . sizes [ c2 ] [ 0 ] ) #NEWLINE# b = self . font . getsize ( key ) [ 0 ] #NEWLINE# self . kerning [ key ] = ( b - a ) #NEWLINE# #UNINDENT# return self . kerning [ key ]