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

Method _update_metrics

lib/matplotlib/_mathtext.py:1210–1218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1208 return '`%s`' % self.c
1209
1210 def _update_metrics(self) -> None:
1211 metrics = self._metrics = self.fontset.get_metrics(
1212 self.font, self.font_class, self.c, self.fontsize, self.dpi)
1213 if self.c == ' ':
1214 self.width = metrics.advance
1215 else:
1216 self.width = metrics.width
1217 self.height = metrics.iceberg
1218 self.depth = -(metrics.iceberg - metrics.height)
1219
1220 def is_slanted(self) -> bool:
1221 return self._metrics.slanted

Callers 3

__init__Method · 0.95
operatornameMethod · 0.45
boldsymbolMethod · 0.45

Calls 1

get_metricsMethod · 0.45

Tested by

no test coverage detected