PdfFontsCollectionCreateFont(Font, Boolean) Method
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: HiQPdfAssembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
public PdfFont CreateFont(
Font font,
bool embed
)
Public Function CreateFont (
font As Font,
embed As Boolean
) As PdfFont
public:
PdfFont^ CreateFont(
Font^ font,
bool embed
)
member CreateFont :
font : Font *
embed : bool -> PdfFont
- font Font
- The .NET font from which to create the PDF font
- embed Boolean
- Controls if the font is embedded in the generated PDF document
PdfFontThe PDF font corresponding to the .NET font