Editar

Compartir a través de


SKFontManager.MatchCharacter Method

Definition

Overloads

MatchCharacter(Char)

Use the system fallback to find a typeface for the given character.

MatchCharacter(Int32)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, Char)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, Int32)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, String[], Char)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, String[], Int32)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, SKFontStyle, String[], Int32)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant, String[], Char)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant, String[], Int32)

Use the system fallback to find a typeface for the given character.

MatchCharacter(String, Int32, Int32, SKFontStyleSlant, String[], Int32)

Use the system fallback to find a typeface for the given character.

MatchCharacter(Char)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (char character);

Parameters

character
Char

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Applies to

MatchCharacter(Int32)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (int character);

Parameters

character
Int32

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Applies to

MatchCharacter(String, Char)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, char character);

Parameters

familyName
String

The family name to use when searching.

character
Char

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Applies to

MatchCharacter(String, Int32)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, int character);

Parameters

familyName
String

The family name to use when searching.

character
Int32

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Applies to

MatchCharacter(String, String[], Char)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, string[] bcp47, char character);

Parameters

familyName
String

The family name to use when searching.

bcp47
String[]

The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".

character
Char

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Remarks

Note that bcp47 is a combination of ISO 639, 15924, and3166-1 codes, so it is fine to just pass a ISO 639 here. The first item is the least significant fallback, and the last is the most significant.

If no specified codes match, any font with the requested character will be matched.

This method may return null if no family can be found for the character in the system fallback.

Applies to

MatchCharacter(String, String[], Int32)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, string[] bcp47, int character);

Parameters

familyName
String

The family name to try and use.

bcp47
String[]

The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".

character
Int32

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Remarks

Note that bcp47 is a combination of ISO 639, 15924, and3166-1 codes, so it is fine to just pass a ISO 639 here. The first item is the least significant fallback, and the last is the most significant.

If no specified codes match, any font with the requested character will be matched.

This method may return null if no family can be found for the character in the system fallback.

Applies to

MatchCharacter(String, SKFontStyle, String[], Int32)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, SkiaSharp.SKFontStyle style, string[] bcp47, int character);

Parameters

familyName
String

The family name to use when searching.

style
SKFontStyle

The font style to use when searching.

bcp47
String[]

The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".

character
Int32

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Remarks

Note that bcp47 is a combination of ISO 639, 15924, and3166-1 codes, so it is fine to just pass a ISO 639 here. The first item is the least significant fallback, and the last is the most significant.

If no specified codes match, any font with the requested character will be matched.

This method may return null if no family can be found for the character in the system fallback.

Applies to

MatchCharacter(String, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant, String[], Char)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, SkiaSharp.SKFontStyleWeight weight, SkiaSharp.SKFontStyleWidth width, SkiaSharp.SKFontStyleSlant slant, string[] bcp47, char character);

Parameters

familyName
String

The family name to use when searching.

weight
SKFontStyleWeight

The font weight to use when searching.

width
SKFontStyleWidth

The font width to use when searching.

slant
SKFontStyleSlant

The font slant to use when searching.

bcp47
String[]

The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".

character
Char

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Remarks

Note that bcp47 is a combination of ISO 639, 15924, and3166-1 codes, so it is fine to just pass a ISO 639 here. The first item is the least significant fallback, and the last is the most significant.

If no specified codes match, any font with the requested character will be matched.

This method may return null if no family can be found for the character in the system fallback.

Applies to

MatchCharacter(String, SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant, String[], Int32)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, SkiaSharp.SKFontStyleWeight weight, SkiaSharp.SKFontStyleWidth width, SkiaSharp.SKFontStyleSlant slant, string[] bcp47, int character);

Parameters

familyName
String

The family name to use when searching.

weight
SKFontStyleWeight

The font weight to use when searching.

width
SKFontStyleWidth

The font width to use when searching.

slant
SKFontStyleSlant

The font slant to use when searching.

bcp47
String[]

The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".

character
Int32

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Remarks

Note that bcp47 is a combination of ISO 639, 15924, and3166-1 codes, so it is fine to just pass a ISO 639 here. The first item is the least significant fallback, and the last is the most significant.

If no specified codes match, any font with the requested character will be matched.

This method may return null if no family can be found for the character in the system fallback.

Applies to

MatchCharacter(String, Int32, Int32, SKFontStyleSlant, String[], Int32)

Use the system fallback to find a typeface for the given character.

public SkiaSharp.SKTypeface MatchCharacter (string familyName, int weight, int width, SkiaSharp.SKFontStyleSlant slant, string[] bcp47, int character);

Parameters

familyName
String

The family name to use when searching.

weight
Int32

The font weight to use when searching.

width
Int32

The font width to use when searching.

slant
SKFontStyleSlant

The font slant to use when searching.

bcp47
String[]

The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".

character
Int32

The character to find a typeface for.

Returns

Returns the SKTypeface that contains the given character, or null if none was found.

Remarks

Note that bcp47 is a combination of ISO 639, 15924, and3166-1 codes, so it is fine to just pass a ISO 639 here. The first item is the least significant fallback, and the last is the most significant.

If no specified codes match, any font with the requested character will be matched.

This method may return null if no family can be found for the character in the system fallback.

Applies to