Bearbeiten

Freigeben über


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)
Obsolete.

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

Returns to the closest-matching typeface.

Applies to

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

Returns to the closest-matching typeface.

Applies to

FromFamilyName(String, SKTypefaceStyle)

Caution

Use FromFamilyName(string, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant) instead.

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

Returns to the closest-matching typeface.

Attributes

Applies to

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

Returns to the closest-matching typeface.

Applies to

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

Returns to the closest-matching typeface.

Applies to