Return a glyph's TexMetrics, or None if unavailable.
(self, idx)
| 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})) |
no test coverage detected