PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / EmbeddedFontCollection Class / FindFont Method / FindFont(String,Int32,Boolean,Boolean) Method
The name of the font to search for.
The charset to search for.
The bold style to search for.
The italic style to search for.

In This Topic
    FindFont(String,Int32,Boolean,Boolean) Method
    In This Topic
    Searches for a font with the specified name and charset, which exactly matches the specified bold/italic styles.
    Syntax
    'Declaration
     
    Public Overloads Function FindFont( _
       ByVal name As String, _
       ByVal charSet As Integer, _
       ByVal bold As Boolean, _
       ByVal italic As Boolean _
    ) As EmbeddedFont
    public EmbeddedFont FindFont( 
       string name,
       int charSet,
       bool bold,
       bool italic
    )

    Parameters

    name
    The name of the font to search for.
    charSet
    The charset to search for.
    bold
    The bold style to search for.
    italic
    The italic style to search for.

    Return Value

    The matching EmbeddedFont, or null if an exact match was not found.
    See Also