---
title: "FontFactory.Open"
url: "https://reference.aspose.com/font/net/aspose.font/fontfactory/open/"
product: "Aspose.Font for .NET API Reference"
description: "FontFactory method. Opens a font using FontDefinition object"
---

## Open(FontDefinition) {#open_3}

Opens a font, using FontDefinition object.

```csharp
public Font Open(FontDefinition fontDefinition)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fontDefinition | FontDefinition | Font definition object. |

### Return Value

Font loaded.

### See Also

* class [Font](../../font/)
* class [FontDefinition](../../../aspose.font.sources/fontdefinition/)
* class [FontFactory](../)
* namespace [Aspose.Font](../../../aspose.font/)
* assembly [Aspose.Font](../../../)

---

## Open(FontType, StreamSource) {#open}

Opens a font, using font type and stream source.

```csharp
public Font Open(FontType fontType, StreamSource fontStreamSource)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fontType | FontType | Font type. |
| fontStreamSource | StreamSource | Stream source for font. |

### Return Value

Font loaded.

### See Also

* class [Font](../../font/)
* enum [FontType](../../fonttype/)
* class [StreamSource](../../../aspose.font.sources/streamsource/)
* class [FontFactory](../)
* namespace [Aspose.Font](../../../aspose.font/)
* assembly [Aspose.Font](../../../)

---

## Open(FontType, string) {#open_2}

Opens a font, using font type and font file name.

```csharp
public Font Open(FontType fontType, string fileName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fontType | FontType | Font type. |
| fileName | String | Font file name. |

### Return Value

Font loaded.

### See Also

* class [Font](../../font/)
* enum [FontType](../../fonttype/)
* class [FontFactory](../)
* namespace [Aspose.Font](../../../aspose.font/)
* assembly [Aspose.Font](../../../)

---

## Open(FontType, byte[]) {#open_1}

Opens a font, using font type and font data byte array.

```csharp
public Font Open(FontType fontType, byte[] fontData)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fontType | FontType | Font type. |
| fontData | Byte[] | Byte array to load font from. |

### Return Value

Font loaded.

### See Also

* class [Font](../../font/)
* enum [FontType](../../fonttype/)
* class [FontFactory](../)
* namespace [Aspose.Font](../../../aspose.font/)
* assembly [Aspose.Font](../../../)


