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

Method getFont

Lib/pagebot/contexts/basecontext/babelstring.py:958–964  ·  view source on GitHub ↗
(self, style=None)

Source from the content-addressed store, hash-verified

956 font = property(_get_font, _set_font)
957
958 def getFont(self, style=None):
959 if not style:
960 style = self.style
961 fontName = style.get('font', DEFAULT_FONT)
962 if fontName is None:
963 fontName = DEFAULT_FONT
964 return findFont(fontName)
965
966 def _get_fontSize(self):
967 """Answers the fontSize that is defined in the current style.

Callers 8

_get_topLineAscenderMethod · 0.95
_get_topLineDescenderMethod · 0.95
_get_topLineCapHeightMethod · 0.95
_get_topLineXHeightMethod · 0.95
_get_fontMethod · 0.95

Calls 2

findFontFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected