ExpertPdf Html to Pdf Converter Library
AddFont Method (font, embedFont)
NamespacesExpertPdf.HtmlToPdf.PdfDocumentDocumentAddFont(Font, Boolean)
ExpertPdf Html to Pdf Converter Library
Adds a system font to the fonts collection. If the font was already added the method returns the existing font. The embedFont property indicates if the added font will be embedded into the PDF document.
Declaration Syntax
C#Visual BasicVisual C++
public PdfFont AddFont(
	Font font,
	bool embedFont
)
Public Function AddFont ( 
	font As Font,
	embedFont As Boolean
) As PdfFont
public:
PdfFont^ AddFont(
	Font^ font, 
	bool embedFont
)
Parameters
font (Font)
Font for adding.
embedFont (Boolean)
When true the font will be embedded in the PDF document.
Return Value
PdfFont
The font added to the collection.

Assembly: ExpertPdf.HtmlToPdf (Module: ExpertPdf.HtmlToPdf.dll) Version: 9.2.0.25824 (9.2.0.0)