Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_width
Method · 0.95
decode
Method · 0.95
sum
Function · 0.85
Tested by
no test coverage detected