 |
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.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic static PdfFont CreateFromSystemFont(
string familyName,
float size,
PdfFontStyle style
)
Public Shared Function CreateFromSystemFont (
familyName As String,
size As Single,
style As PdfFontStyle
) As PdfFont
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
PdfFontA new
PdfFont backed by the embedded system font.
Exceptions| Exception | Condition |
|---|
| PdfDocumentException | Thrown if the family is not installed or
its font file cannot be read. |
See Also