(self, c: str, state: ParserState)
| 1193 | """ |
| 1194 | |
| 1195 | def __init__(self, c: str, state: ParserState): |
| 1196 | super().__init__() |
| 1197 | self.c = c |
| 1198 | self.fontset = state.fontset |
| 1199 | self.font = state.font |
| 1200 | self.font_class = state.font_class |
| 1201 | self.fontsize = state.fontsize |
| 1202 | self.dpi = state.dpi |
| 1203 | # The real width, height and depth will be set during the |
| 1204 | # pack phase, after we know the real fontsize |
| 1205 | self._update_metrics() |
| 1206 | |
| 1207 | def __repr__(self) -> str: |
| 1208 | return '`%s`' % self.c |
nothing calls this directly
no test coverage detected