PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / EmbeddedFontCollection Class / FindBestMatch Method
The name of the font to search for.
The charset to search for.
The style of the font to match.

In This Topic
    FindBestMatch Method (EmbeddedFontCollection)
    In This Topic
    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).
    Syntax
    'Declaration
     
    Public Function FindBestMatch( _
       ByVal name As String, _
       ByVal charSet As Integer, _
       ByVal fontStyle As FontStyle _
    ) As EmbeddedFont
    public EmbeddedFont FindBestMatch( 
       string name,
       int charSet,
       FontStyle fontStyle
    )

    Parameters

    name
    The name of the font to search for.
    charSet
    The charset to search for.
    fontStyle
    The style of the font to match.

    Return Value

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