def score_size(self, size1, size2):
if size2 == '<STR_LIT>':<EOL><INDENT>return <NUM_LIT:0.0><EOL><DEDENT>try:<EOL><INDENT>sizeval1 = float(size1)<EOL><DEDENT>except ValueError:<EOL><INDENT>sizeval1 = self.default_size * font_scalings(size1)<EOL><DEDENT>try:<EOL><INDENT>sizeval2 = float(size2)<EOL><DEDENT>except ValueError:<EOL><INDENT>return <NUM_LIT:1.0><EOL><DEDENT>return abs(sizeval1 - sizeval2) / <NUM_LIT><EOL>
Returns a match score between *size1* and *size2*.

If *size2* (the size specified in the font file) is 'scalable', this
function always returns 0.0, since any font size can be generated.

Otherwise, the result is the absolute distance between *size1* and
*size2*, normalized so that the usual range of font sizes (6pt -
72pt) will lie between 0.0 and 1.0.