FontArguments
- class FontArguments
Represents a set of actual arguments for a font.
Classes
Container of coordinates.
Methods
Specify the index of the desired font.
Specify a position in the variation design space.
Methods
- FontArguments.__init__(self: skia.FontArguments) None
- FontArguments.getCollectionIndex(self: skia.FontArguments) int
- FontArguments.getVariationDesignPosition(self: skia.FontArguments) skia.FontArguments.VariationPosition
- FontArguments.setCollectionIndex(self: skia.FontArguments, collectionIndex: int) skia.FontArguments
Specify the index of the desired font.
Font formats like ttc, dfont, cff, cid, pfr, t42, t1, and fon may actually be indexed collections of fonts.
- FontArguments.setVariationDesignPosition(self: skia.FontArguments, position: skia.FontArguments.VariationPosition) skia.FontArguments
Specify a position in the variation design space.
Any axis not specified will use the default value. Any specified axis not actually present in the font will be ignored.
- Parameters:
position – not copied. The value must remain valid for life of
FontArguments
.