## FontDefinition::Open(System::SharedPtr\<StreamSource\>, Aspose::Font::FontType) method


Returns [FontDefinition](../) for font stream source and font type.

```cpp
static System::SharedPtr<FontDefinition> Aspose::Font::Sources::FontDefinition::Open(System::SharedPtr<StreamSource> source, Aspose::Font::FontType fontType)
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | System::SharedPtr\<StreamSource\> | [Font](../../../aspose.font/font/) stream source. |
| fontType | Aspose::Font::FontType | [Font](../../../aspose.font/font/) type. |

### ReturnValue

[FontDefinition](../).

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontDefinition](../)
* Class [StreamSource](../../streamsource/)
* Enum [FontType](../../../aspose.font/fonttype/)
* Class [FontDefinition](../)
* Namespace [Aspose::Font::Sources](../../)
* Library [Aspose.Font for C++](../../../)
## FontDefinition::Open(System::String, Aspose::Font::FontType) method


Returns [FontDefinition](../) for font file and font type.

```cpp
static System::SharedPtr<FontDefinition> Aspose::Font::Sources::FontDefinition::Open(System::String fileName, Aspose::Font::FontType fontType)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | System::String | [Font](../../../aspose.font/font/) file name. |
| fontType | Aspose::Font::FontType | [Font](../../../aspose.font/font/) type. |

### ReturnValue

[FontDefinition](../).

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontDefinition](../)
* Class [String](../../../system/string/)
* Enum [FontType](../../../aspose.font/fonttype/)
* Class [FontDefinition](../)
* Namespace [Aspose::Font::Sources](../../)
* Library [Aspose.Font for C++](../../../)
