Name
GenericFontFamilies
Synopsis
This enumeration lists the three generic font families.
Systems can have wildly different sets of fonts installed
(particularly in cross-platform environments). By specifying one of
the generic families, you can retrieve a
Monospace, SansSerif, or
Serif font appropriate to the current platform,
regardless of what might actually be present. For example, the
SansSerif font could be Arial on one machine and
Helvetica on another.
public enum GenericFontFamilies { Serif = 0, SansSerif = 1, Monospace = 2 }
Hierarchy
System.Object
→ System.ValueType → System.Enum(System.IComparabl,
System.IFormattable,
System.IConvertible)
→ GenericFontFamilies
Passed To
System.Drawing.FontFamily.FontFamily()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access