Skia
2DGraphicsLibrary
|
Represents a set of actual arguments for a font. More...
#include <SkFontArguments.h>
Classes | |
struct | Axis |
struct | VariationPosition |
Public Member Functions | |
SkFontArguments & | setCollectionIndex (int collectionIndex) |
Specify the index of the desired font. More... | |
SkFontArguments & | setAxes (const Axis *axes, int axisCount) |
SkFontArguments & | setVariationDesignPosition (VariationPosition position) |
Specify a position in the variation design space. More... | |
int | getCollectionIndex () const |
const Axis * | getAxes (int *axisCount) const |
VariationPosition | getVariationDesignPosition () const |
Private Attributes | |
int | fCollectionIndex |
VariationPosition | fVariationDesignPosition |
Represents a set of actual arguments for a font.
|
inline |
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.
|
inline |
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.
position | not copied. The value must remain valid for life of SkFontArguments. |