SKTypeface.FromFamilyName Method

Definition

Overloads

FromFamilyName(String)

Returns a new instance to a typeface that most closely matches the requested family name and style.

FromFamilyName(String, SKFontStyle)

Returns a new instance to a typeface that most closely matches the requested family name and style.

FromFamilyName(String, SKTypefaceStyle)

Returns a new instance to a typeface that most closely matches the requested family name and style.

FromFamilyName(String, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant)

Return a new instance to a typeface that most closely matches the requested family name and style.

FromFamilyName(String, Int32, Int32, SKFontStyleSlant)

Return a new instance to a typeface that most closely matches the requested family name and style.

FromFamilyName(String)

Returns a new instance to a typeface that most closely matches the requested family name and style.

public static SkiaSharp.SKTypeface FromFamilyName (string familyName);

Parameters

familyName
String

The name of the font family. May be null.

Returns

SKTypeface

Returns to the closest-matching typeface.

FromFamilyName(String, SKFontStyle)

Returns a new instance to a typeface that most closely matches the requested family name and style.

public static SkiaSharp.SKTypeface FromFamilyName (string familyName, SkiaSharp.SKFontStyle style);

Parameters

familyName
String

The name of the font family. May be null.

style
SKFontStyle

The style (normal, bold, italic) of the typeface.

Returns

SKTypeface

Returns to the closest-matching typeface.

FromFamilyName(String, SKTypefaceStyle)

Warning

This API is now obsolete.

Returns a new instance to a typeface that most closely matches the requested family name and style.

public static SkiaSharp.SKTypeface FromFamilyName (string familyName, SkiaSharp.SKTypefaceStyle style = SkiaSharp.SKTypefaceStyle.Normal);
[System.Obsolete("Use FromFamilyName(string, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant) instead.")]
public static SkiaSharp.SKTypeface FromFamilyName (string familyName, SkiaSharp.SKTypefaceStyle style);

Parameters

familyName
String

The name of the font family. May be null.

style
SKTypefaceStyle

The style (normal, bold, italic) of the typeface.

Returns

SKTypeface

Returns to the closest-matching typeface.

Attributes

FromFamilyName(String, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant)

Return a new instance to a typeface that most closely matches the requested family name and style.

public static SkiaSharp.SKTypeface FromFamilyName (string familyName, SkiaSharp.SKFontStyleWeight weight, SkiaSharp.SKFontStyleWidth width, SkiaSharp.SKFontStyleSlant slant);

Parameters

familyName
String

The name of the font family. May be null.

weight
SKFontStyleWeight

The weight of the typeface.

width
SKFontStyleWidth

The width of the typeface.

slant
SKFontStyleSlant

The slant of the typeface.

Returns

SKTypeface

Returns to the closest-matching typeface.

FromFamilyName(String, Int32, Int32, SKFontStyleSlant)

Return a new instance to a typeface that most closely matches the requested family name and style.

public static SkiaSharp.SKTypeface FromFamilyName (string familyName, int weight, int width, SkiaSharp.SKFontStyleSlant slant);

Parameters

familyName
String

The name of the font family. May be null.

weight
Int32

The weight of the typeface.

width
Int32

The width of the typeface.

slant
SKFontStyleSlant

The slant of the typeface.

Returns

SKTypeface

Returns to the closest-matching typeface.

Applies to