 | 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
Assemblies:
Patagames.Pdf.Xamarin.iOS (in Patagames.Pdf.Xamarin.iOS.dll) Version: 4.84.2704
Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.84.2704
Syntax[FlagsAttribute]
public enum FontFlags
<FlagsAttribute>
Public Enumeration FontFlags
[FlagsAttribute]
public enum class FontFlags
[<FlagsAttribute>]
type FontFlags
/** @attribute FlagsAttribute */
public enum FontFlags
Patagames.Pdf.Enums.FontFlags = function();
Patagames.Pdf.Enums.FontFlags.createEnum('Patagames.Pdf.Enums.FontFlags', true);
Members
| Member name | Value | Description |
---|
| PDFFONT_FIXEDPITCH | 1 |
All glyphs have the same width (as opposed to proportional or variable-pitch fonts, which have different widths).
|
| PDFFONT_SERIF | 2 |
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_SYMBOLIC | 4 |
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_SCRIPT | 8 |
Glyphs resemble cursive handwriting.
|
| PDFFONT_NONSYMBOLIC | 32 |
Font uses the Adobe standard Latin character set or a subset of it (see below).
|
| PDFFONT_ITALIC | 64 |
Glyphs have dominant vertical strokes that are slanted.
|
| PDFFONT_ALLCAP | 65536 |
Font contains no lowercase letters; typically used for display purposes, such as for titles or headlines.
|
| PDFFONT_SMALLCAP | 131072 |
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_FORCEBOLD | 262144 |
The ForceBold flag determines whether bold glyphs are painted with extra pixels even at very small text sizes
|
| PDFFONT_USEEXTERNATTR | 524288 |
External attributes
|
Remarks
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 |
---|
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