Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clips/pattern
/ char_disp
Method
char_disp
pattern/web/pdf/pdffont.py:494–495 ·
view source on GitHub ↗
(self, cid)
Source
from the content-addressed store, hash-verified
492
return
self.widths.get(cid, self.default_width) * self.hscale
493
494
def
char_disp(self, cid):
495
return
0
496
497
def
string_width(self, s):
498
return
sum( self.char_width(cid)
for
cid in self.decode(s) )
Callers
1
render_char
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected