Skia
2D Graphics Library
SkFontStyle Class Reference

#include <SkFontStyle.h>

Public Types

enum  Weight {
  kInvisible_Weight = 0, kThin_Weight = 100, kExtraLight_Weight = 200, kLight_Weight = 300,
  kNormal_Weight = 400, kMedium_Weight = 500, kSemiBold_Weight = 600, kBold_Weight = 700,
  kExtraBold_Weight = 800, kBlack_Weight = 900, kExtraBlack_Weight = 1000
}
 
enum  Width {
  kUltraCondensed_Width = 1, kExtraCondensed_Width = 2, kCondensed_Width = 3, kSemiCondensed_Width = 4,
  kNormal_Width = 5, kSemiExpanded_Width = 6, kExpanded_Width = 7, kExtraExpanded_Width = 8,
  kUltraExpanded_Width = 9
}
 
enum  Slant { kUpright_Slant, kItalic_Slant, kOblique_Slant }
 

Public Member Functions

constexpr SkFontStyle (int weight, int width, Slant slant)
 
constexpr SkFontStyle ()
 
bool operator== (const SkFontStyle &rhs) const
 
int weight () const
 
int width () const
 
Slant slant () const
 

Static Public Member Functions

static constexpr SkFontStyle Normal ()
 
static constexpr SkFontStyle Bold ()
 
static constexpr SkFontStyle Italic ()
 
static constexpr SkFontStyle BoldItalic ()
 

Member Enumeration Documentation

◆ Slant

Enumerator
kUpright_Slant 
kItalic_Slant 
kOblique_Slant 

◆ Weight

Enumerator
kInvisible_Weight 
kThin_Weight 
kExtraLight_Weight 
kLight_Weight 
kNormal_Weight 
kMedium_Weight 
kSemiBold_Weight 
kBold_Weight 
kExtraBold_Weight 
kBlack_Weight 
kExtraBlack_Weight 

◆ Width

Enumerator
kUltraCondensed_Width 
kExtraCondensed_Width 
kCondensed_Width 
kSemiCondensed_Width 
kNormal_Width 
kSemiExpanded_Width 
kExpanded_Width 
kExtraExpanded_Width 
kUltraExpanded_Width 

Constructor & Destructor Documentation

◆ SkFontStyle() [1/2]

constexpr SkFontStyle::SkFontStyle ( int  weight,
int  width,
Slant  slant 
)
inlineconstexpr

◆ SkFontStyle() [2/2]

constexpr SkFontStyle::SkFontStyle ( )
inlineconstexpr

Member Function Documentation

◆ Bold()

static constexpr SkFontStyle SkFontStyle::Bold ( )
inlinestaticconstexpr

◆ BoldItalic()

static constexpr SkFontStyle SkFontStyle::BoldItalic ( )
inlinestaticconstexpr

◆ Italic()

static constexpr SkFontStyle SkFontStyle::Italic ( )
inlinestaticconstexpr

◆ Normal()

static constexpr SkFontStyle SkFontStyle::Normal ( )
inlinestaticconstexpr

◆ operator==()

bool SkFontStyle::operator== ( const SkFontStyle rhs) const
inline

◆ slant()

Slant SkFontStyle::slant ( ) const
inline

◆ weight()

int SkFontStyle::weight ( ) const
inline

◆ width()

int SkFontStyle::width ( ) const
inline

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