animator.skia.FontStyleSet

class animator.skia.FontStyleSet

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Methods

CreateEmpty()

__init__(*args, **kwargs)

count(self)

createTypeface(self, index)

getStyle(self, index)

Return a tuple of (font style, style name) for the given index.

matchStyle(self, pattern)

static CreateEmpty() animator.skia.FontStyleSet
count(self: animator.skia.FontStyleSet) int
createTypeface(self: animator.skia.FontStyleSet, index: int) animator.skia.Typeface
getStyle(self: animator.skia.FontStyleSet, index: int) tuple

Return a tuple of (font style, style name) for the given index.

matchStyle(self: animator.skia.FontStyleSet, pattern: animator.skia.FontStyle) animator.skia.Typeface