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 Function FindBestMatch( _
ByVal As System.String, _
ByVal As System.Integer, _
ByVal As System.Drawing.FontStyle _
) As EmbeddedFont
public EmbeddedFont FindBestMatch(
System.string ,
System.int ,
System.Drawing.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.