animator.skia.FontMgr

class animator.skia.FontMgr

Bases: pybind11_builtins.pybind11_object

__init__(self: animator.skia.FontMgr) None

Methods

New_Custom_Data(arg0)

RefDefault()

RefEmpty()

__init__(self)

countFamilies(self)

createStyleSet(self, index)

getFamilyName(self, index)

Return the name of the font family at the given index.

legacyMakeTypeface(self, familyName, style)

makeFromData(self, data[, ttcIndex])

makeFromFile(self, path[, ttcIndex])

matchFamily(self, familyName)

matchFamilyStyle(self, familyName, style)

matchFamilyStyleCharacter(self, familyName, ...)

Use the system fallback to find a typeface for the given character.

static New_Custom_Data(arg0: List[animator.skia.Data]) animator.skia.FontMgr
static RefDefault() animator.skia.FontMgr
static RefEmpty() animator.skia.FontMgr
countFamilies(self: animator.skia.FontMgr) int
createStyleSet(self: animator.skia.FontMgr, index: int) animator.skia.FontStyleSet
getFamilyName(self: animator.skia.FontMgr, index: int) str

Return the name of the font family at the given index.

legacyMakeTypeface(self: animator.skia.FontMgr, familyName: str, style: animator.skia.FontStyle) animator.skia.Typeface
makeFromData(self: animator.skia.FontMgr, data: animator.skia.Data, ttcIndex: int = 0) animator.skia.Typeface
makeFromFile(self: animator.skia.FontMgr, path: str, ttcIndex: int = 0) animator.skia.Typeface
matchFamily(self: animator.skia.FontMgr, familyName: Optional[str]) animator.skia.FontStyleSet
matchFamilyStyle(self: animator.skia.FontMgr, familyName: Optional[str], style: animator.skia.FontStyle) animator.skia.Typeface
matchFamilyStyleCharacter(self: animator.skia.FontMgr, familyName: Optional[str], style: animator.skia.FontStyle, bcp47: List[str], character: int) animator.skia.Typeface

Use the system fallback to find a typeface for the given character. bcp47Count is automatically set to the number of strings in bcp47.