 |
PdfFontGetSystemFont Method |
Gets the system font this font was created from, or null when it did not come
from one.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfSystemFont GetSystemFont()
Public Function GetSystemFont As PdfSystemFont
Return Value
PdfSystemFontThe 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.
ExamplePdfFont font = PdfFont.CreateFromSystemFont("Liberation Sans", 12f);
PdfSystemFont descriptor = font.GetSystemFont();Dim font As PdfFont = PdfFont.CreateFromSystemFont("Liberation Sans", 12.0F)
Dim descriptor As PdfSystemFont = font.GetSystemFont()
See Also