Adds a system font to the fonts collection. The font is created from the specified file.
If the font was already added the method returns the existing font.
Namespace: EvoPdfAssembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0
Syntax
| C# |
|---|
public PdfFont AddFont( string fontFilename ) |
| Visual Basic |
|---|
Public Function AddFont ( fontFilename As String ) As PdfFont |
| Visual C++ |
|---|
public: PdfFont^ AddFont( String^ fontFilename ) |
Parameters
- fontFilename
- Type: System..::..String
The file name of the font to be added.
Return Value
Type: PdfFontThe font added to the collection.