 |
PdfFontStyle Enumeration |
Selection style for a system font resolved by family name. Describes which weight /
slant variant of the family to load (Regular, Bold, Italic, or Bold+Italic).
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax[FlagsAttribute]
public enum PdfFontStyle
<FlagsAttribute>
Public Enumeration PdfFontStyle
Members| Member name | Value | Description |
|---|
| Regular | 0 | Regular (upright) weight. |
| Bold | 1 | Bold weight. |
| Italic | 2 | Italic (or oblique) slant. |
Remarks
Only values that select a distinct font file on the host system are included. Text
decorations such as underline / strikeout are applied at draw time via
IsUnderline and
IsStrikeout — they are
properties of the glyph run, not of the loaded font, so they don't belong here.
ExamplePdfSystemFont font = new PdfSystemFont("Arial", 12f,
PdfFontStyle.Bold | PdfFontStyle.Italic);
doc.Fonts.Add(font);Dim font As New PdfSystemFont("Arial", 12.0F,
PdfFontStyle.Bold Or PdfFontStyle.Italic)
doc.Fonts.Add(font)
See Also