Method GetDefaultOrNew
GetDefaultOrNew(string, double, FontStyle, Font?)
Creates new font or gets defaultFont
if its properties
are equal to the specified.
public static Font GetDefaultOrNew(string name, double sizeInPoints, FontStyle style, Font? defaultFont = null)
Parameters
name
stringFont name.
sizeInPoints
doubleFont size.
style
FontStyleFont style
defaultFont
FontDefault font. Optional. If
null
, Default is used.