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

Method get_metrics

lib/matplotlib/dviread.py:1015–1017  ·  view source on GitHub ↗

Return a glyph's TexMetrics, or None if unavailable.

(self, idx)

Source from the content-addressed store, hash-verified

1013 )
1014
1015 def get_metrics(self, idx):
1016 """Return a glyph's TexMetrics, or None if unavailable."""
1017 return self._glyph_metrics.get(idx)
1018
1019 width = _api.deprecated("3.11", alternative="get_metrics")(
1020 property(lambda self: {c: m.tex_width for c, m in self._glyph_metrics}))

Callers 3

_width_ofMethod · 0.45
_height_depth_ofMethod · 0.45
_embedTeXFontMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected