Return the instance font at this location. The font is stored as file, # so it correspondents to normal instance.path behavior.
(self, vf, location)
| 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 | |
| 140 | if __name__ == '__main__': |
no test coverage detected