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

Method get_weight

lib/matplotlib/_afm.py:473–475  ·  view source on GitHub ↗

Return the font weight, e.g., 'Bold' or 'Roman'.

(self)

Source from the content-addressed store, hash-verified

471 return self.get_familyname()
472
473 def get_weight(self) -> str:
474 """Return the font weight, e.g., 'Bold' or 'Roman'."""
475 return self._header['Weight']
476
477 def get_angle(self) -> float:
478 """Return the fontangle as float."""

Callers 6

get_fontweightMethod · 0.45
_escape_and_apply_propsFunction · 0.45
_draw_text_as_textMethod · 0.45
get_wx_fontMethod · 0.45
test_font_stylesFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_font_stylesFunction · 0.36