Click or drag to resize
Pdf Library for .NET

PdfFontCreateFromSystemFont(String, Single, PdfFontStyle) Method

Resolves a system font by family name + style and creates a PdfFont. The font is subset-embedded into the output document.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public static PdfFont CreateFromSystemFont(
	string familyName,
	float size,
	PdfFontStyle style
)

Parameters

familyName  String
An installed font family name.
size  Single
The font size in points.
style  PdfFontStyle
Which weight / slant variant of the family to load.

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