FontStyle

class FontStyle

Classes

Slant

Members:

Weight

Members:

Width

Members:

Methods

Bold

BoldItalic

Italic

Normal

__init__

__init__(*args, **kwargs) Overloaded function.

slant

weight

width

Attributes

kBlack_Weight

kBold_Weight

kCondensed_Width

kExpanded_Width

kExtraBlack_Weight

kExtraBold_Weight

kExtraCondensed_Width

kExtraExpanded_Width

kExtraLight_Weight

kInvisible_Weight

kItalic_Slant

kLight_Weight

kMedium_Weight

kNormal_Weight

kNormal_Width

kOblique_Slant

kSemiBold_Weight

kSemiCondensed_Width

kSemiExpanded_Width

kThin_Weight

kUltraCondensed_Width

kUltraExpanded_Width

kUpright_Slant

Methods

static FontStyle.Bold() skia.FontStyle
static FontStyle.BoldItalic() skia.FontStyle
static FontStyle.Italic() skia.FontStyle
static FontStyle.Normal() skia.FontStyle
FontStyle.__init__(*args, **kwargs)

__init__(*args, **kwargs) Overloaded function.

  1. __init__(self: skia.FontStyle, weight: int, width: int, slant: skia.FontStyle.Slant) -> None

  2. __init__(self: skia.FontStyle) -> None

FontStyle.slant(self: skia.FontStyle) skia.FontStyle.Slant
FontStyle.weight(self: skia.FontStyle) int
FontStyle.width(self: skia.FontStyle) int

Attributes

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