Width of char in dvi units.
(self, char)
| 741 | return f"<{type(self).__name__}: {self.texname}>" |
| 742 | |
| 743 | def _width_of(self, char): |
| 744 | """Width of char in dvi units.""" |
| 745 | metrics = self._metrics.get_metrics(char) |
| 746 | if metrics is None: |
| 747 | _log.debug('No width for char %d in font %s.', char, self.texname) |
| 748 | return 0 |
| 749 | return _mul1220(metrics.tex_width, self._scale) |
| 750 | |
| 751 | def _height_depth_of(self, char): |
| 752 | """Height and depth of char in dvi units.""" |
no test coverage detected