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

Function _try_add

lib/matplotlib/font_manager.py:606–611  ·  view source on GitHub ↗
(name, subfam)

Source from the content-addressed store, hash-verified

604 return 400 # "Regular" or unrecognised
605
606 def _try_add(name, subfam):
607 name = name.strip()
608 if not name or name in seen:
609 return
610 seen.add(name)
611 result.append((name, _weight_from_subfam(subfam.strip())))
612
613 # Each family-name ID is paired with its corresponding subfamily ID on the
614 # same platform: (family_id, subfamily_id).

Callers 1

_get_font_alt_namesFunction · 0.85

Calls 2

_weight_from_subfamFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…