textlayout_FontCollection
- class textlayout_FontCollection
Methods
Increment the reference count.
Overloaded function.
May return true if the caller is the only owner.
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.
setDefaultFontManager(self: skia.textlayout_FontCollection, fontManager: skia.FontMgr) -> None
setDefaultFontManager(self: skia.textlayout_FontCollection, fontManager: skia.FontMgr, defaultFamilyName: str) -> None
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.