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

Method getFont

Lib/pagebot/contexts/basecontext/babelrun.py:75–81  ·  view source on GitHub ↗
(self, style=None)

Source from the content-addressed store, hash-verified

73 return r + '>'
74
75 def getFont(self, style=None):
76 if not style:
77 style = self.style
78 fontName = style.get('font', DEFAULT_FONT)
79 if fontName is None:
80 fontName = DEFAULT_FONT
81 return findFont(fontName)
82
83 def getFSStyle(self):
84 # D E P R E C A T E D

Callers 1

getFSStyleMethod · 0.95

Calls 2

findFontFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected