MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _weight_from_subfam

Function _weight_from_subfam

lib/matplotlib/font_manager.py:599–604  ·  view source on GitHub ↗
(subfam)

Source from the content-addressed store, hash-verified

597 result = []
598
599 def _weight_from_subfam(subfam):
600 subfam = subfam.replace(" ", "")
601 for regex, weight in _weight_regexes:
602 if re.search(regex, subfam, re.I):
603 return weight
604 return 400 # "Regular" or unrecognised
605
606 def _try_add(name, subfam):
607 name = name.strip()

Callers 1

_try_addFunction · 0.85

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…