Class StandardFont
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
One of the 14 standard PDF fonts, which every viewer provides, so nothing is embedded and files stay small.
public sealed class StandardFont : PdfFont
- Inheritance
-
StandardFont
- Inherited Members
Remarks
The Latin fonts use WinAnsiEncoding, so they can show Western European text (Windows-1252 characters) but not, for example, Greek, Cyrillic or CJK; use TrueTypeFont for those. Symbol and ZapfDingbats use their own built-in encodings. PDF/A forbids non-embedded fonts, so standard fonts cannot be used in documents created with CreateForPdfA(PdfAConformance). Text widths and kerning come from Adobe's AFM metrics; kerning is always applied. Ligatures need an embedded TrueTypeFont.
Fields
- Courier
Courier (monospaced).
- CourierBold
Courier Bold.
- CourierBoldOblique
Courier Bold Oblique.
- CourierOblique
Courier Oblique.
- Helvetica
Helvetica (sans-serif).
- HelveticaBold
Helvetica Bold.
- HelveticaBoldOblique
Helvetica Bold Oblique.
- HelveticaOblique
Helvetica Oblique.
- Symbol
Symbol: Greek letters and mathematical symbols, addressed by their single-byte codes (for example
ashows α).
- TimesBold
Times Bold.
- TimesBoldItalic
Times Bold Italic.
- TimesItalic
Times Italic.
- TimesRoman
Times Roman (serif).
- ZapfDingbats
ZapfDingbats: decorative symbols and arrows, addressed by their single-byte codes.
Properties
- All
All 14 standard fonts.
- BaseFont
The PostScript name of the font, such as
Helvetica-Bold.
- IsSymbolic
Whether this is Symbol or ZapfDingbats, which use their own encodings instead of WinAnsiEncoding.
Methods
- ToString()
Returns BaseFont.