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

Method getInstance

Lib/pagebot/elements/variablefonts/waterfall.py:132–137  ·  view source on GitHub ↗

Return the instance font at this location. The font is stored as file, # so it correspondents to normal instance.path behavior.

(self, vf, location)

Source from the content-addressed store, hash-verified

130 return dict(wght=wght, wdth=wdth, opsz=opsz)
131
132 def getInstance(self, vf, location):
133 """Return the instance font at this location. The font is stored as file,
134 # so it correspondents to normal instance.path behavior."""
135 if vf.axes:
136 return getVarFontInstance(vf, location)
137 return vf
138
139
140if __name__ == '__main__':

Callers 2

__init__Method · 0.95
drawAnimatedFrameMethod · 0.45

Calls 1

getVarFontInstanceFunction · 0.90

Tested by

no test coverage detected