Click or drag to resize
Pdf Library for .NET

PdfFontCollectionAdd(PdfSystemFont) Method

Resolves the system font described by systemFont to its installed TrueType / OpenType file, subset-embeds it into the document, and returns the resulting PdfFont.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfFont Add(
	PdfSystemFont systemFont
)

Parameters

systemFont  PdfSystemFont
A system-font descriptor (family / size / style).

Return Value

PdfFont
The PdfFont wrapper for the added font.
Exceptions
ExceptionCondition
PdfDocumentExceptionThrown if the family is not installed on the host or its font file cannot be read.
See Also