 |
PdfSystemFontsLoadFontBytes Method |
Resolves a system font to its raw font-file bytes (TrueType / OpenType). Throws
PdfDocumentException if the family isn't installed or its bytes can't
be read.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic static byte[] LoadFontBytes(
string familyName,
PdfFontStyle style
)
Public Shared Function LoadFontBytes (
familyName As String,
style As PdfFontStyle
) As Byte()
Parameters
- familyName String
- An installed (or bundled) font family name.
- style PdfFontStyle
- Which weight / slant variant of the family to load.
Return Value
ByteThe raw TrueType / OpenType font-file bytes.
Exceptions| Exception | Condition |
|---|
| PdfDocumentException | Thrown if the family isn't installed or its bytes can't be read. |
Remarks
See Also