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


Erstellt eine neue **TrueType**-Schriftressource aus einem Stream.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Stream | System::SharedPtr\<System::IO::Stream\> | Der Stream, der das ICC-Profil enthält, das als Ressource verwendet werden soll. |

### ReturnValue

Neue **TrueType**-Schriftressource.

## Siehe auch

* 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


Erstellt eine neue **TrueType**-Schriftressource.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| fontFamily | System::String | Die Schriftfamilie. |
| fontStyle | System::Drawing::FontStyle | Der Schriftstil. |

### ReturnValue

Neue **TrueType**-Schriftressource.

## Siehe auch

* 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++](../../../)
