MCPcopy Create free account
hub / github.com/PageBot/PageBot / _set_leading

Method _set_leading

Lib/pagebot/contexts/basecontext/babelstring.py:1008–1011  ·  view source on GitHub ↗
(self, leading)

Source from the content-addressed store, hash-verified

1006 """
1007 return units(self.style.get('leading', DEFAULT_LEADING), base=self.fontSize)
1008 def _set_leading(self, leading):
1009 # Set the leading in the current style
1010 self.style['leading'] = units(leading, base=self.fontSize)
1011 self.reset() # Make sure context cache recalculates.
1012 leading = property(_get_leading, _set_leading)
1013
1014 def _get_tracking(self):

Callers

nothing calls this directly

Calls 2

resetMethod · 0.95
unitsFunction · 0.90

Tested by

no test coverage detected