<PackageReference Include="System.Drawing.Common" Version="9.0.6" />

FontFamily

public sealed class FontFamily : MarshalByRefObject, IDisposable
Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
public static FontFamily[] Families { get; }

Returns an array that contains all the FontFamily objects associated with the current graphics context.

public static FontFamily GenericMonospace { get; }

Gets a generic monospace FontFamily.

public static FontFamily GenericSansSerif { get; }

Gets a generic sans serif FontFamily object.

public static FontFamily GenericSerif { get; }

Gets a generic serif FontFamily.

public string Name { get; }

Gets the name of this FontFamily.

public FontFamily(GenericFontFamilies genericFamily)

Initializes a new FontFamily from the specified generic font family.

public FontFamily(string name)

Initializes a new FontFamily with the specified name.

public FontFamily(string name, FontCollection fontCollection)

Initializes a new FontFamily in the specified FontCollection with the specified name.

public static FontFamily[] GetFamilies(Graphics graphics)

Returns an array that contains all the FontFamily objects available for the specified graphics context.

public void Dispose()

Releases all resources used by this FontFamily.

public int GetCellAscent(FontStyle style)

Returns the cell ascent, in design units, of the FontFamily of the specified style.

public int GetCellDescent(FontStyle style)

Returns the cell descent, in design units, of the FontFamily of the specified style.

public int GetEmHeight(FontStyle style)

Gets the height, in font design units, of the em square for the specified style.

public int GetLineSpacing(FontStyle style)

Returns the line spacing, in design units, of the FontFamily of the specified style. The line spacing is the vertical distance between the base lines of two consecutive lines of text.

public string GetName(int language)

Returns the name, in the specified language, of this FontFamily.

public bool IsStyleAvailable(FontStyle style)

Indicates whether the specified FontStyle enumeration is available.