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

Method get_width_char

lib/matplotlib/_afm.py:427–429  ·  view source on GitHub ↗

Get the width of the character code from the character metric WX field.

(self, c: CharacterCodeType)

Source from the content-addressed store, hash-verified

425 return cast(GlyphIndexType, c)
426
427 def get_width_char(self, c: CharacterCodeType) -> float:
428 """Get the width of the character code from the character metric WX field."""
429 return self._metrics[c].width
430
431 def get_width_from_char_name(self, name: str) -> float:
432 """Get the width of the character from a type1 character name."""

Callers 1

draw_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected