[]
        
(Showing Draft Content)

C1.C1Preview.EmbeddedFontCollection.FindFont

FindFont Method

FindFont(string, int, bool, bool)

Searches for a font with the specified name and charset, which exactly matches the specified bold/italic styles.

Declaration
public EmbeddedFont FindFont(string name, int charSet, bool bold, bool italic)
Public Function FindFont(name As String, charSet As Integer, bold As Boolean, italic As Boolean) As EmbeddedFont
Parameters
Type Name Description
string name

The name of the font to search for.

int charSet

The charset to search for.

bool bold

The bold style to search for.

bool italic

The italic style to search for.

Returns
Type Description
EmbeddedFont

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

FindFont(string, int, FontStyle)

Searches for a font with the specified name and charset, which exactly matches the specified bold/italic styles.

Declaration
public EmbeddedFont FindFont(string name, int charSet, FontStyle fontStyle)
Public Function FindFont(name As String, charSet As Integer, fontStyle As FontStyle) As EmbeddedFont
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 an exact match was not found.