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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public EmbeddedFont FindBestMatch(
	string name,
	int charSet,
	FontStyle fontStyle
)
Visual Basic
Public Function FindBestMatch ( _
	name As String, _
	charSet As Integer, _
	fontStyle As FontStyle _
) As EmbeddedFont

Parameters

name
Type: System..::..String
The name of the font to search for.
charSet
Type: System..::..Int32
The charset to search for.
fontStyle
Type: System.Drawing..::..FontStyle
The style of the font to match.

Return Value

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

See Also