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: EvoPdf
Assembly: 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: PdfFont
The font added to the collection.

See Also