SKTypeface.FromFamilyName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기