Modifier

Partager via


SKFontManager.GetFontStyles Method

Definition

Overloads

GetFontStyles(String)

Use the system fallback to find the typeface styles for the given family.

GetFontStyles(Int32)

Returns the font style set for the specified index.

GetFontStyles(String)

Use the system fallback to find the typeface styles for the given family.

public SkiaSharp.SKFontStyleSet GetFontStyles (string familyName);

Parameters

familyName
String

The family name to use when searching.

Returns

Returns a SKFontStyleSet with all the font styles supported by the specified family.

Remarks

Never returns null and will return an empty set if the family is not found.

Applies to

GetFontStyles(Int32)

Returns the font style set for the specified index.

public SkiaSharp.SKFontStyleSet GetFontStyles (int index);

Parameters

index
Int32

The index of the font style set to retrieve.

Returns

Returns the font style set.

Remarks

The index must be in the range of [0, FontFamilyCount).

Applies to