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

Function getDefaultFontPath

Lib/pagebot/fonttoolbox/fontpaths.py:36–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 return '%s/%s' % (resourcesPath, 'testfonts')
35
36def getDefaultFontPath():
37 testFontsPath = getTestFontsPath()
38 return '%s/%s/%s.ttf' % (testFontsPath, DEFAULT_FOUNDRY, DEFAULT_FONT)
39
40def getFontPathOfFont(font, default=None):
41 """Answers the path that is source of the given font name.

Callers 4

getRootStyleFunction · 0.90
__init__Method · 0.90
_get_fontMethod · 0.90
getFontPathOfFontFunction · 0.85

Calls 1

getTestFontsPathFunction · 0.85

Tested by

no test coverage detected