SKFontStyleSet Class

Definition

Represets the set of styles for a particular font family.

public class SKFontStyleSet : SkiaSharp.SKObject, System.Collections.Generic.IEnumerable<SkiaSharp.SKFontStyle>, System.Collections.Generic.IReadOnlyCollection<SkiaSharp.SKFontStyle>, System.Collections.Generic.IReadOnlyList<SkiaSharp.SKFontStyle>
Inheritance
Implements

Constructors

SKFontStyleSet()

Creates a new, empty SKFontStyleSet.

Properties

Count

Gets the number of font styles in the set.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
Item[Int32]

Gets the font style at the specified index.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)

Methods

CreateTypeface(Int32)

Creates a new SKTypeface with the style that is the closest match to the style at the specified index.

CreateTypeface(SKFontStyle)

Creates a new SKTypeface with a style that is the closest match to the specified font style.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKFontStyleSet and optionally releases the managed resources.

GetEnumerator()

Returns an enumerator that iterates through the font styles.

GetStyleName(Int32)

Returns the name of the font style.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the font styles.

Applies to