(self, x, y, angle, oldx=0, oldy=0, oldangle=0)
| 2144 | Op.grestore) |
| 2145 | |
| 2146 | def _setup_textpos(self, x, y, angle, oldx=0, oldy=0, oldangle=0): |
| 2147 | if angle == oldangle == 0: |
| 2148 | self.file.output(x - oldx, y - oldy, Op.textpos) |
| 2149 | else: |
| 2150 | angle = math.radians(angle) |
| 2151 | self.file.output(math.cos(angle), math.sin(angle), |
| 2152 | -math.sin(angle), math.cos(angle), |
| 2153 | x, y, Op.textmatrix) |
| 2154 | self.file.output(0, 0, Op.textpos) |
| 2155 | |
| 2156 | def draw_mathtext(self, gc, x, y, s, prop, angle): |
| 2157 | # TODO: fix positioning and encoding |
no test coverage detected