(self, c, state, math=True)
| 1434 | :class:`Char` is added to its parent :class:`Hlist`. |
| 1435 | """ |
| 1436 | def __init__(self, c, state, math=True): |
| 1437 | Node.__init__(self) |
| 1438 | self.c = c |
| 1439 | self.font_output = state.font_output |
| 1440 | self.font = state.font |
| 1441 | self.font_class = state.font_class |
| 1442 | self.fontsize = state.fontsize |
| 1443 | self.dpi = state.dpi |
| 1444 | self.math = math |
| 1445 | # The real width, height and depth will be set during the |
| 1446 | # pack phase, after we know the real fontsize |
| 1447 | self._update_metrics() |
| 1448 | |
| 1449 | def __repr__(self): |
| 1450 | return '`%s`' % self.c |
nothing calls this directly
no test coverage detected