textlayout_FontCollection

class textlayout_FontCollection

Methods

__init__

ref

Increment the reference count.

setDefaultFontManager

Overloaded function.

unique

May return true if the caller is the only owner.

unref

Decrement the reference count.

Methods

textlayout_FontCollection.__init__(self: skia.textlayout_FontCollection) None
textlayout_FontCollection.ref(self: skia.RefCntBase) None

Increment the reference count.

Must be balanced by a call to unref().

textlayout_FontCollection.setDefaultFontManager(*args, **kwargs)

Overloaded function.

  1. setDefaultFontManager(self: skia.textlayout_FontCollection, fontManager: skia.FontMgr) -> None

  2. setDefaultFontManager(self: skia.textlayout_FontCollection, fontManager: skia.FontMgr, defaultFamilyName: str) -> None

  3. setDefaultFontManager(self: skia.textlayout_FontCollection, fontManager: skia.FontMgr, defaultFamilyNames: list[skia.String]) -> None

textlayout_FontCollection.unique(self: skia.RefCntBase) bool

May return true if the caller is the only owner.

Ensures that all previous owner’s actions are complete.

textlayout_FontCollection.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.