SystemFonts.GetFontByName

SystemFonts.GetFontByName method

Returns a font object that corresponds to the specified system font name.

public static Font GetFontByName(string systemFontName)
ParameterTypeDescription
systemFontNameStringThe name of the system font you need a font object for.

Return Value

A Font if the specified name matches a value in SystemFonts; otherwise, null.

See Also