Adds the new font with specified properties to the end of the collection of document fonts.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfFont AddFont(
	string fontFace,
	FontStyle fontStyle
)
VB
Public Function AddFont ( 
	fontFace As String,
	fontStyle As FontStyle
) As PdfFont

Parameters

fontFace
Type: System.String
The name of the font face.
fontStyle
Type: System.Drawing.FontStyle
The FontStyle of the new font.

Return Value

Type: PdfFont
The newly added PdfFont or null if there is no font with specified face installed.

Remarks

If requested font does not have bold or italic version then bold or italic version will be synthesized when needed.

See Also