 |
PdfStandardFont Enumeration |
One of the 14 built-in standard PDF fonts (Helvetica, Courier, Times, Symbol and
ZapfDingbats, with their style variants). These fonts are not embedded in the document.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic enum PdfStandardFont
Public Enumeration PdfStandardFont
Members| Member name | Value | Description |
|---|
| Custom | 0 |
Custom font.
|
| Helvetica | 1 |
Helvetica font.
|
| HelveticaBold | 2 |
Helvetica Bold font.
|
| HelveticaOblique | 3 |
Helvetica Oblique font.
|
| HelveticaBoldOblique | 4 |
Helvetica Bold Oblique font.
|
| Courier | 5 |
Courier font.
|
| CourierBold | 6 |
Courier Bold font.
|
| CourierOblique | 7 |
Courier Oblique font.
|
| CourierBoldOblique | 8 |
Courier Bold Oblique font.
|
| TimesRoman | 9 |
Times Roman font.
|
| TimesBold | 10 |
Times Bold font.
|
| TimesBoldItalic | 11 |
Times Bold Italic font.
|
| TimesItalic | 12 |
Times Italic font.
|
| Symbol | 13 |
Symbol font.
|
| ZapfDingbats | 14 |
ZapfDingbats font.
|
ExamplePdfFont font = PdfFont.CreateStandardFont(PdfStandardFont.HelveticaBold, 12f);
converter.Header.Add(new PdfTextSection(20, 20, "Hello world", font));
Dim font As PdfFont = PdfFont.CreateStandardFont(PdfStandardFont.HelveticaBold, 12F)
converter.Header.Add(New PdfTextSection(20, 20, "Hello world", font))
See Also