Attributes for HIG_PDE_FONT and HIG_PDF_SYSFONT.
|
Copy Code
|
|
|---|---|
typedef struct tagAT_PDE_FONTATTRS
{
HIG_PDF_ATOM name;
HIG_PDF_ATOM type;
HIG_PDF_ATOM charSet;
HIG_PDF_ATOM encoding;
UINT flags;
AT_PDF_FIXEDRECT fontBBox;
SHORT missingWidth;
SHORT stemV;
SHORT stemH;
SHORT capHeight;
SHORT xHeight;
SHORT ascent;
SHORT descent;
SHORT leading;
SHORT maxWidth;
SHORT avgWidth;
SHORT italicAngle;
HIG_PDF_ATOM cidFontType;
SHORT wMode;
HIG_PDF_ATOM psName;
HIG_PDF_ATOM platformName;
HIG_PDF_ATOM lang;
HIG_PDF_ATOM registry;
HIG_PDF_ATOM ordering;
LONG supplement;
LONG cantEmbed;
HIG_PDF_ATOM deltaEncoding;
UINT protection;
LONG packageType;
} AT_PDE_FONTATTRS;
typedef AT_PDE_FONTATTRS FAR* LPAT_PDE_FONTATTRS;
|
|
| Name | Type | Description |
|---|---|---|
| name | HIG_PDF_ATOM | A HIG_PDF_ATOM for font name, as in "Times-Roman." Corresponds to the BaseFont key in the font dictionary of a PDF file (see Section 5.6.3 in the PDF Reference). |
| type | HIG_PDF_ATOM | A HIG_PDF_ATOM for font type, corresponding to the Subtype key in a font dictionary. May be "Type1," "TrueType," "MMType1," or "Type0." |
| charSet | HIG_PDF_ATOM | A HIG_PDF_ATOM for "Roman" or IG_PDF_ATOM_NULL. If "Roman," the characters must be a subset of the Adobe Standard Roman Character Set. |
| encoding | HIG_PDF_ATOM | A HIG_PDF_ATOM for font encoding. May be MacRomanEncoding, WinAnsiEncoding, or IG_PDF_ATOM_NULL. In the case of IG_PDF_ATOM_NULL, call PDSysFontGetEncoding to get more information about the encoding. |
| flags | UINT | Desired font flags, one or more of Font Flags. Use IG_PDF_SCRIPT, etc. to get flags. |
| fontBBox | AT_PDF_FIXEDRECT | Font bounding box in 1000 EM units. |
| missingWidth | SHORT | Width of missing character (.notdef). |
| stemV | SHORT | Vertical stem width. |
| stemH | SHORT | Horizontal stem width. |
| capHeight | SHORT | Capital height. |
| xHeight | SHORT | X height. |
| ascent | SHORT | Max ascender height. |
| descent | SHORT | Max descender depth. |
| leading | SHORT | Additional leading between lines. |
| maxWidth | SHORT | Maximum character width. |
| avgWidth | SHORT | Average character width. |
| italicAngle | SHORT | Italic angle in degrees, if any. |
| cidFontType | HIG_PDF_ATOM | CIDFontType0 or CIDFontType2. |
| wMode | SHORT | Writing mode. Must be one of 0 for horizontal writing or 1 for vertical writing. |
| psName | HIG_PDF_ATOM | HIG_PDF_ATOM representing the PostScript name of a TrueType font. |
| platformName | HIG_PDF_ATOM | The platform name. |
| lang | HIG_PDF_ATOM | HIG_PDF_ATOM representing the ISO 639 language code. These are available from http://www.iso.ch. |
| registry | HIG_PDF_ATOM | HIG_PDF_ATOM representing the CIDFont's Registry information, as in "gAdobe-Japan". |
| ordering | HIG_PDF_ATOM | HIG_PDF_ATOM representing the CIDFont's Ordering information, for example, "g1". |
| supplement | LONG | The SystemSupplement field from the CIDFont. |
| cantEmbed | LONG | A non-zero value means the font can't be embedded. |
| deltaEncoding | HIG_PDF_ATOM | The name of the base encoding; that is, the BaseEncoding entry in an encoding dictionary (see section 5.5.5 of the PDF Reference). The Differences entry of the encoding dictionary describes differences (deltas) from the base encoding. |
| protection | UINT | protection Allows setting one of the following bits to disable font embedding: IG_PDE_FONT_NO_EMBEDDING = 1: font should not be embedded. IG_PDE_FONT_NO_EDITABLE_EMBEDDING = 2: font should not be embedded for editing purposes. |
| packageType | LONG | enumIGPDFSysFontPackageType value. |