Click or drag to resize
Pdf Library for .NET

PdfFontCreateFromSystemFont(PdfSystemFont) Method

Resolves the system font described by systemFont and creates a PdfFont. Equivalent to CreateFromSystemFont(String, Single, PdfFontStyle) with the descriptor's family / size / style.

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

Parameters

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

Return Value

PdfFont
A new PdfFont backed by the embedded system font.
Exceptions
ExceptionCondition
PdfDocumentExceptionThrown if the family is not installed or its font file cannot be read.
See Also