Click or drag to resize

FontCollectionAdd Method (Font, Boolean)

Adds a system font to the fonts collection. If the font was already added the method returns the existing font. The embedFont property says if the added font will be embedded into the PDF document

Namespace:  ExpertPdf.HtmlToPdf.PdfDocument
Assembly:  ephtmltopdf (in ephtmltopdf.dll) Version: 17.0.0
Syntax
public PdfFont Add(
	Font font,
	bool embedFont
)

Parameters

font
Type: System.DrawingFont
Font for adding.
embedFont
Type: SystemBoolean
When true the font will be embedded in the PDF document.

Return Value

Type: PdfFont
The font added to the collection.
See Also