MCPcopy Create free account
hub / github.com/clips/pattern / get_height

Method get_height

pattern/web/pdf/pdffont.py:485–489  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected