## Font class

Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.

```csharp
public sealed class Font
```

## Constructors

| Name | Description |
| --- | --- |
| [Font](font/#constructor)(Font, FontStyle) | Initializes a new `Font` that uses the specified existing `Font` and [`FontStyle`](../fontstyle/) enumeration. |
| [Font](font/#constructor_1)(string, float) | 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. |
| [Font](font/#constructor_2)(string, float, FontStyle) | Initializes a new `Font` using a specified size and style. The character set is set to Default, the graphics unit to Point. |
| [Font](font/#constructor_5)(string, float, GraphicsUnit) | Initializes a new `Font` using a specified size and unit. The character set is set to Default, the style is set to Regular. |
| [Font](font/#constructor_3)(string, float, FontStyle, GraphicsUnit) | Initializes a new `Font` using a specified size, style, and unit. |
| [Font](font/#constructor_4)(string, float, FontStyle, GraphicsUnit, CharacterSet) | Initializes a new `Font` using a specified size, style, unit, and character set. |

## Properties

| Name | Description |
| --- | --- |
| [Bold](../../aspose.imaging/font/bold/) { get; } | Gets a value indicating whether this `Font` is bold. |
| [CharacterSet](../../aspose.imaging/font/characterset/) { get; } | Gets a byte value that specifies the character set that this `Font` uses. |
| [Italic](../../aspose.imaging/font/italic/) { get; } | Gets a value indicating whether this `Font` is italic. |
| [Name](../../aspose.imaging/font/name/) { get; } | Gets the face name of this `Font`. |
| [Size](../../aspose.imaging/font/size/) { get; } | Gets the em-size of this `Font` measured in the units specified by the [`Unit`](./unit/) property. |
| [Strikeout](../../aspose.imaging/font/strikeout/) { get; } | Gets a value indicating whether this `Font` specifies a horizontal line through the font. |
| [Style](../../aspose.imaging/font/style/) { get; } | Gets style information for this `Font`. |
| [Underline](../../aspose.imaging/font/underline/) { get; } | Gets a value indicating whether this `Font` is underlined. |
| [Unit](../../aspose.imaging/font/unit/) { get; } | Gets the unit of measure for this `Font`. |

## Methods

| Name | Description |
| --- | --- |
| [DeepClone](../../aspose.imaging/font/deepclone/)() | Creates an exact deep copy of this `Font`. |
| override [Equals](../../aspose.imaging/font/equals/)(object) | Indicates whether the specified object is a `Font` and has the same property values as this `Font`. |
| override [GetHashCode](../../aspose.imaging/font/gethashcode/)() | Gets the hash code for this `Font`. |
| override [ToString](../../aspose.imaging/font/tostring/)() | Returns a human-readable string representation of this `Font`. |

### See Also

* namespace [Aspose.Imaging](../../aspose.imaging/)
* assembly [Aspose.Imaging](../../)


