FontStyleSet

class FontStyleSet

Methods

CreateEmpty

CreateEmpty() -> skia.FontStyleSet

__init__

count

count(self: skia.FontStyleSet) -> int

createTypeface

createTypeface(self: skia.FontStyleSet, index: int) -> skia.Typeface

getStyle

getStyle(self: skia.FontStyleSet, index: int) -> tuple

matchStyle

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

ref

ref(self: skia.RefCntBase) -> None

unique

unique(self: skia.RefCntBase) -> bool

unref

unref(self: skia.RefCntBase) -> None

Methods

static FontStyleSet.CreateEmpty() skia.FontStyleSet
FontStyleSet.__init__(*args, **kwargs)
FontStyleSet.count(self: skia.FontStyleSet) int
FontStyleSet.createTypeface(self: skia.FontStyleSet, index: int) skia.Typeface
FontStyleSet.getStyle(self: skia.FontStyleSet, index: int) tuple
FontStyleSet.matchStyle(self: skia.FontStyleSet, pattern: skia.FontStyle) skia.Typeface
FontStyleSet.ref(self: skia.RefCntBase) None

Increment the reference count.

Must be balanced by a call to unref().

FontStyleSet.unique(self: skia.RefCntBase) bool

May return true if the caller is the only owner.

Ensures that all previous owner’s actions are complete.

FontStyleSet.unref(self: skia.RefCntBase) None

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.