## PrivateFontCollection::AddFontFile method


Adds a font from the specified file to the collection.

```cpp
void System::Drawing::Text::PrivateFontCollection::AddFontFile(const String &filename)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filename | const String\& | A path to the file containing the font to add |

## See Also

* Class [String](../../../system/string/)
* Class [PrivateFontCollection](../)
* Namespace [System::Drawing::Text](../../)
* Library [Aspose.TeX for C++](../../../)
