Click or drag to resize
Pdf Library for .NET

PdfFontGetSystemFont Method

Gets the system font this font was created from, or null when it did not come from one.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfSystemFont GetSystemFont()

Return Value

PdfSystemFont
The originating PdfSystemFont, or null.
Remarks
Returns the PdfSystemFont descriptor (family / size / style) that produced this font. The descriptor tracks Size, so it stays accurate after a resize.
Example
PdfFont font = PdfFont.CreateFromSystemFont("Liberation Sans", 12f);
PdfSystemFont descriptor = font.GetSystemFont();
See Also