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

Method _set_font

Lib/pagebot/contexts/basecontext/babelstring.py:952–955  ·  view source on GitHub ↗
(self, font)

Source from the content-addressed store, hash-verified

950 return self.getFont()
951
952 def _set_font(self, font):
953 assert isinstance(font, (str, Font))
954 self.style['font'] = font # Set the font in the current style
955 self.reset() # Make sure context cache recalculates.
956 font = property(_get_font, _set_font)
957
958 def getFont(self, style=None):

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected