**Inheritance:**
java.lang.Object
```
public final class FontExtensions
```

Contains extension methods for the `Imaging.Font` class.
## Methods

| Method | Description |
| --- | --- |
| [toGdiFont(Font font)](#toGdiFont-com.aspose.imaging.Font-) | Converts the `Imaging.Font` to the `System.Drawing.Font`. |
| [toGdiFont(Font font, int fontUnit)](#toGdiFont-com.aspose.imaging.Font-int-) | Converts the `Font` to the `System.Drawing.Font`. |
### toGdiFont(Font font) {#toGdiFont-com.aspose.imaging.Font-}
```
public static Font toGdiFont(Font font)
```


Converts the `Imaging.Font` to the `System.Drawing.Font`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| font | [Font](../../com.aspose.imaging/font) | The `Imaging.Font` to convert. |

**Returns:**
[Font](../../java.awt/font) - The converted `System.Drawing.Font`.
### toGdiFont(Font font, int fontUnit) {#toGdiFont-com.aspose.imaging.Font-int-}
```
public static Font toGdiFont(Font font, int fontUnit)
```


Converts the `Font` to the `System.Drawing.Font`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| font | [Font](../../com.aspose.imaging/font) | The `Font` to convert. |
| fontUnit | int | New graphics unit |

**Returns:**
[Font](../../java.awt/font) - The converted `System.Drawing.Font`.
