FontFamily Class

Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  System.DrawingFontFamily

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public sealed class FontFamily : IDisposable

The FontFamily type exposes the following members.

Constructors
  NameDescription
Public methodFontFamily(String)
Initializes a new instance of the FontFamily class with the specified name.
Public methodFontFamily(String, FontCollection)
Initializes a new instance of the FontFamily class.
Properties
  NameDescription
Public propertyStatic memberFamilies
Gets an array that contains all the FontFamily objects associated with the current graphics context.
Public propertyStatic memberGenericMonospace
Gets a generic monospace FontFamily.
Public propertyStatic memberGenericSansSerif
Gets a generic sans serif FontFamily object.
Public propertyStatic memberGenericSerif
Gets a generic serif FontFamily.
Public propertyName
Gets the name of this FontFamily.
Methods
  NameDescription
Public methodDispose
Releases all resources used by this FontFamily.
Public methodEquals
Indicates whether the specified object is a FontFamily and is identical to this FontFamily.
(Overrides ObjectEquals(Object).)
Public methodGetCellAscent
Returns the cell ascent, in design units, of the FontFamily of the specified style.
Public methodGetCellDescent
Returns the cell descent, in design units, of the FontFamily of the specified style.
Public methodGetEmHeight
Gets the height, in font design units, of the EM square for the specified style.
Public methodGetHashCode
Gets a hash code for this FontFamily.
(Overrides ObjectGetHashCode.)
Public methodGetLineSpacing
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 methodGetName
Returns the name, in the specified language, of this FontFamily.
Public methodGetType (Inherited from Object.)
Public methodIsStyleAvailable
Indicates whether the specified FontStyle enumeration is available.
Public methodToString (Inherited from Object.)
See Also