Click or drag to resize

FontFlags Enumeration

The value of the Flags entry in a font descriptor is an unsigned 32-bit integer containing flags specifying various characteristics of the font.

Namespace: Patagames.Pdf.Enums
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.89.2704
public enum FontFlags
Member nameValueDescription
PDFFONT_FIXEDPITCH1 All glyphs have the same width (as opposed to proportional or variable-pitch fonts, which have different widths).
PDFFONT_SERIF2 Glyphs have serifs, which are short strokes drawn at an angle on the top and bottom of glyph stems. (Sans serif fonts do not have serifs.)
PDFFONT_SYMBOLIC4 Font contains glyphs outside the Adobe standard Latin character set. This flag and the Nonsymbolic flag cannot both be set or both be clear (see below).
PDFFONT_SCRIPT8 Glyphs resemble cursive handwriting.
PDFFONT_NONSYMBOLIC32 Font uses the Adobe standard Latin character set or a subset of it (see below).
PDFFONT_ITALIC64 Glyphs have dominant vertical strokes that are slanted.
PDFFONT_ALLCAP65,536 Font contains no lowercase letters; typically used for display purposes, such as for titles or headlines.
PDFFONT_SMALLCAP131,072 Font contains both uppercase and lowercase letters. The uppercase letters are similar to those in the regular version of the same typeface family. The glyphs for the lowercase letters have the same shapes as the corresponding uppercase letters, but they are sized and their proportions adjusted so that they have the same size and stroke weight as lowercase glyphs in the same typeface family.
PDFFONT_FORCEBOLD262,144 The ForceBold flag determines whether bold glyphs are painted with extra pixels even at very small text sizes
PDFFONT_USEEXTERNATTR524,288 External attributes
The Nonsymbolic flag indicates that the font’s character set is the Adobe standard Latin character set (or a subset of it) and that it uses the standard names for those glyphs. This character set is shown in PDF Reference 1.7 in Section D.1, “Latin Character Set and Encodings.” If the font contains any glyphs outside this set, the Symbolic flag should be set and the Nonsymbolic flag clear. In other words, any font whose character set is not a subset of the Adobe standard character set is considered to be symbolic. This influences the font’s implicit base encoding and may affect a consumer application’s font substitution strategies.
Note  Note
This classification of nonsymbolic and symbolic fonts is peculiar to PDF. A font may contain additional characters that are used in Latin writing systems but are outside the Adobe standard Latin character set; PDF considers such a font to be symbolic. The use of two flags to represent a single binary choice is a historical accident.
The ForceBold flag determines whether bold glyphs are painted with extra pixels even at very small text sizes. Typically, when glyphs are painted at small sizes on very low-resolution devices such as display screens, features of bold glyphs may appear only 1 pixel wide. Because this is the minimum feature width on a pixel-based device, ordinary (nonbold) glyphs also appear with 1-pixel-wide features and therefore cannot be distinguished from bold glyphs. If the ForceBold flag is set, features of bold glyphs may be thickened at small text sizes.
See Also