Creates a PDF font from the given .NET font and adds it to the collection.
Optionally embeds the font in the generated PDF document based on embed parameter value
Namespace: HiQPdf
Assembly: HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax
Parameters
- font
- Type: System.DrawingFont
The .NET font from which to create the PDF font - embed
- Type: SystemBoolean
Controls if the font is embedded in the generated PDF document
Return Value
Type: PdfFontThe PDF font corresponding to the .NET font
See Also