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

Method string_width

pattern/web/pdf/pdffont.py:497–498  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

495 return 0
496
497 def string_width(self, s):
498 return sum( self.char_width(cid) for cid in self.decode(s) )
499
500
501# PDFSimpleFont

Callers

nothing calls this directly

Calls 3

char_widthMethod · 0.95
decodeMethod · 0.95
sumFunction · 0.85

Tested by

no test coverage detected