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

Method _set_fontSize

Lib/pagebot/contexts/basecontext/babelstring.py:983–986  ·  view source on GitHub ↗
(self, fontSize)

Source from the content-addressed store, hash-verified

981 """
982 return units(self.style.get('fontSize', DEFAULT_FONT_SIZE))
983 def _set_fontSize(self, fontSize):
984 # Set the fontSize in the current style
985 self.style['fontSize'] = units(fontSize)
986 self.reset() # Make sure context cache recalculates.
987 fontSize = property(_get_fontSize, _set_fontSize)
988
989 def _get_leading(self):

Callers

nothing calls this directly

Calls 2

resetMethod · 0.95
unitsFunction · 0.90

Tested by

no test coverage detected