Skia
2D Graphics Library
SkFontArguments Struct Reference

Represents a set of actual arguments for a font. More...

#include <SkFontArguments.h>

Classes

struct  Palette
 Specify a palette to use and overrides for palette entries. More...
 
struct  VariationPosition
 

Public Member Functions

 SkFontArguments ()
 
SkFontArgumentssetCollectionIndex (int collectionIndex)
 Specify the index of the desired font. More...
 
SkFontArgumentssetVariationDesignPosition (VariationPosition position)
 Specify a position in the variation design space. More...
 
int getCollectionIndex () const
 
VariationPosition getVariationDesignPosition () const
 
SkFontArgumentssetPalette (Palette palette)
 
Palette getPalette () const
 

Detailed Description

Represents a set of actual arguments for a font.

Constructor & Destructor Documentation

◆ SkFontArguments()

SkFontArguments::SkFontArguments ( )
inline

Member Function Documentation

◆ getCollectionIndex()

int SkFontArguments::getCollectionIndex ( ) const
inline

◆ getPalette()

Palette SkFontArguments::getPalette ( ) const
inline

◆ getVariationDesignPosition()

VariationPosition SkFontArguments::getVariationDesignPosition ( ) const
inline

◆ setCollectionIndex()

SkFontArguments& SkFontArguments::setCollectionIndex ( int  collectionIndex)
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.

◆ setPalette()

SkFontArguments& SkFontArguments::setPalette ( Palette  palette)
inline

◆ setVariationDesignPosition()

SkFontArguments& SkFontArguments::setVariationDesignPosition ( VariationPosition  position)
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.

Parameters
positionnot copied. The value must remain valid for life of SkFontArguments.

The documentation for this struct was generated from the following file: