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: EvoPdfAssembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0
Syntax
| C# |
|---|
public PdfFont Add( Font font, bool embedFont ) |
| Visual Basic |
|---|
Public Function Add ( font As Font, embedFont As Boolean ) As PdfFont |
| Visual C++ |
|---|
public: PdfFont^ Add( Font^ font, bool embedFont ) |
Parameters
- font
- Type: System.Drawing..::..Font
Font for adding.
- embedFont
- Type: System..::..Boolean
When true the font will be embedded in the PDF document.
Return Value
Type: PdfFontThe font added to the collection.