|
PdfFontCollectionAdd Method (Font, Boolean) |
Adds a system font to the pdf fonts collection.
Namespace:
SelectPdf
Assembly:
Select.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax public PdfFont Add(
Font font,
bool embedFont
)
Public Function Add (
font As Font,
embedFont As Boolean
) As PdfFont
Parameters
- font
- Type: System.DrawingFont
Font for adding.The system font to be added to the fonts collection. - embedFont
- Type: SystemBoolean
Specifies if the font will be embedded into the pdf document or not.
Return Value
Type:
PdfFontThe pdf font added to the fonts collection.
Remarks
If the font was already added, the method returns the existing font. The embedFont parameter indicates if the added font
will be embedded into the pdf document or not.
See Also