MCPcopy
hub / github.com/matplotlib/matplotlib / score_variant

Method score_variant

lib/matplotlib/font_manager.py:1391–1400  ·  view source on GitHub ↗

Return a match score between *variant1* and *variant2*. An exact match returns 0.0, otherwise 1.0.

(self, variant1, variant2)

Source from the content-addressed store, hash-verified

1389 return 1.0
1390
1391 def score_variant(self, variant1, variant2):
1392 """
1393 Return a match score between *variant1* and *variant2*.
1394
1395 An exact match returns 0.0, otherwise 1.0.
1396 """
1397 if variant1 == variant2:
1398 return 0.0
1399 else:
1400 return 1.0
1401
1402 def score_stretch(self, stretch1, stretch2):
1403 """

Callers 1

_findfont_cachedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected