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


Crea una nuova risorsa di font **TrueType** da un flusso.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| stream | System::SharedPtr\<System::IO::Stream\> | Il flusso contenente il profilo ICC da utilizzare come risorsa. |

### ReturnValue

Nuova risorsa di font **TrueType**.

## Vedi anche

* 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


Crea una nuova risorsa di font **TrueType**.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| fontFamily | System::String | La famiglia del font. |
| fontStyle | System::Drawing::FontStyle | Lo stile del font. |

### ReturnValue

Nuova risorsa di font **TrueType**.

## Vedi anche

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