[]
        
(Showing Draft Content)

C1.C1Preview.EmbeddedFontCollection.FindBestMatch

FindBestMatch Method

FindBestMatch(string, int, FontStyle)

Searches for a font with the specified name and charset, which is the best match for the specified bold/italic styles (exact bold/italic matching is not guaranteed by this method).

Declaration
public EmbeddedFont FindBestMatch(string name, int charSet, FontStyle fontStyle)
Parameters
Type Name Description
string name

The name of the font to search for.

int charSet

The charset to search for.

FontStyle fontStyle

The style of the font to match.

Returns
Type Description
EmbeddedFont

The matching EmbeddedFont, or null if a match could not be found.