 |
PdfSystemFont Class |
Inheritance HierarchySystemObject
SelectPdf.UniversalPdfSystemFont
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic class PdfSystemFont
Public Class PdfSystemFont
The PdfSystemFont type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | FamilyName | Gets the system font family name (e.g. "Arial", "Times New Roman"). |
 | Size | Gets the font size in points. |
 | Style | Gets the requested style variant (Regular, Bold, Italic, Bold+Italic). |
Top
Methods| | Name | Description |
|---|
 | ToString | Returns a string representation of this system font (family, size and, when set, style). (Overrides ObjectToString) |
Top
Remarks
The descriptor itself does not load any font data. Loading happens at the moment
the descriptor is converted to a
PdfFont; the resolved font is always
subset-embedded into the output document.
ExamplePdfSystemFont descriptor = new PdfSystemFont("Arial", 12f, PdfFontStyle.Bold);
PdfDocument document = new PdfDocument();
document.Fonts.Add(descriptor);Dim descriptor As New PdfSystemFont("Arial", 12.0F, PdfFontStyle.Bold)
Dim document As New PdfDocument()
document.Fonts.Add(descriptor)
See Also