(self)
| 483 | w = -self.default_width |
| 484 | return w * self.hscale |
| 485 | def get_height(self): |
| 486 | h = self.bbox[3]-self.bbox[1] |
| 487 | if h == 0: |
| 488 | h = self.ascent - self.descent |
| 489 | return h * self.vscale |
| 490 | |
| 491 | def char_width(self, cid): |
| 492 | return self.widths.get(cid, self.default_width) * self.hscale |