Convenience value class for specifying a length in points.
| 95 | |
| 96 | |
| 97 | class Pt(Length): |
| 98 | """Convenience value class for specifying a length in points.""" |
| 99 | |
| 100 | def __new__(cls, points: float): |
| 101 | emu = int(points * Length._EMUS_PER_PT) |
| 102 | return Length.__new__(cls, emu) |
| 103 | |
| 104 | |
| 105 | _T = TypeVar("_T") |
no outgoing calls