Font Class
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Aspose.ImagingFont

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 19.9
Syntax
[SerializableAttribute]
public sealed class Font

The Font type exposes the following members.

Constructors
  NameDescription
Public methodFont(String, Single)
Initializes a new Font using a specified size. The character set is set to Default, the graphics unit to Point, the font style to Regular.
Public methodFont(Font, FontStyle)
Initializes a new Font that uses the specified existing Font and FontStyle enumeration.
Public methodFont(String, Single, FontStyle)
Initializes a new Font using a specified size and style. The character set is set to Default, the graphics unit to Point.
Public methodFont(String, Single, GraphicsUnit)
Initializes a new Font using a specified size and unit. The character set is set to Default, the style is set to Regular.
Public methodFont(String, Single, FontStyle, GraphicsUnit)
Initializes a new Font using a specified size, style, and unit.
Public methodFont(String, Single, FontStyle, GraphicsUnit, CharacterSet)
Initializes a new Font using a specified size, style, unit, and character set.
Properties
  NameDescription
Public propertyBold
Gets a value indicating whether this Font is bold.
Public propertyCharacterSet
Gets a byte value that specifies the character set that this Font uses.
Public propertyItalic
Gets a value indicating whether this Font is italic.
Public propertyName
Gets the face name of this Font.
Public propertySize
Gets the em-size of this Font measured in the units specified by the Unit property.
Public propertyStrikeout
Gets a value indicating whether this Font specifies a horizontal line through the font.
Public propertyStyle
Gets style information for this Font.
Public propertyUnderline
Gets a value indicating whether this Font is underlined.
Public propertyUnit
Gets the unit of measure for this Font.
Methods
  NameDescription
Public methodDeepClone
Creates an exact deep copy of this Font.
Public methodEquals
Indicates whether the specified object is a Font and has the same property values as this Font.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Gets the hash code for this Font.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a human-readable string representation of this Font.
(Overrides ObjectToString.)
See Also