## XpsDocument::CreateFont(System::SharedPtr\<System::IO::Stream\>) method


ينشئ مورد خط **TrueType** جديد من تدفق.

```cpp
System::SharedPtr<XpsModel::XpsFont> Aspose::Page::XPS::XpsDocument::CreateFont(System::SharedPtr<System::IO::Stream> stream)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| دفق | System::SharedPtr\<System::IO::Stream\> | الدفق الذي يحتوي على ملف تعريف ICC لاستخدامه كمورد. |

### ReturnValue

مورد خط **TrueType** جديد.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsFont](../../../aspose.page.xps.xpsmodel/xpsfont/)
* Class [Stream](../../../system.io/stream/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::CreateFont(System::String, System::Drawing::FontStyle) method


ينشئ مورد خط **TrueType** جديد.

```cpp
System::SharedPtr<XpsModel::XpsFont> Aspose::Page::XPS::XpsDocument::CreateFont(System::String fontFamily, System::Drawing::FontStyle fontStyle)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| fontFamily | System::String | عائلة الخط. |
| fontStyle | System::Drawing::FontStyle | نمط الخط. |

### ReturnValue

مورد خط **TrueType** جديد.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsFont](../../../aspose.page.xps.xpsmodel/xpsfont/)
* Class [String](../../../system/string/)
* Enum [FontStyle](../../../system.drawing/fontstyle/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
