DL Logo

PDFont Typedefs

PDFontStyle

Header: PDFLExpT.h:214

Description

Specifies a synthetic font style.

For value options see PDOptions.

Syntax

typedef ASUns8 PDFontStyle;

Used In

PDFont Structures

PDPrintFont

Header: PDFLExpT.h:226

Syntax

struct PDPrintFont {
const char *name;
The font name.
const char *encoding;
The font encoding.
const char *cidFontName;
CID font name.
ASInt16 style;
Gothic or Mincho.
PDFontStyle syntheticStyle;
Roman, Italic, Bold, or BoldItalic.
ASBool used;
Set to true if glyphs from this component are used.
ASBool emitted;
Set to true if this component is emmitted.
ASInt32 baseLineAdj;
Baseline adjustment.
ASUns32 flags;
Flags bits.
} PDPrintFontRec, *PDPrintFontP;

Used In

PDPrintFontArray

Header: PDFLExpT.h:263

Description

An array of font pointers for use in PDFontPSGetComponentFontList.

Syntax

struct PDPrintFontArray {
ASUns32 count;
The number of fonts in arr.
ASBool usesDisplayCTFont;
Whether to use the Display CT Font.
The font array.
} PDPrintFontArray, *PDPrintFontArrayP;

Used By

PDFont Functions

PDFontPSEmitGlyphsIncr

Header: PDFLProcs.h:409

Description

Emit glyphs incrementally. This is the default EmitGlyphsIncr callback procedure for the PDPrintClient structure.

Syntax

ASBool PDFontPSEmitGlyphsIncr(ASStm stm, PDFont fontP, PDPrintStrP srcStr, PDPrintStrP dstStr, ASUns32 *srcBytesUsedP, ASUns32 *dstBytesUsedP, ASUns32 *glyphCount, ASUns16 *fontIndexP, PDPrintClient printClient);

Parameters

stm
The stream.
fontP
The font.
srcStr
The source string.
dstStr
The destination string.
srcBytesUsedP
The source bytes used.
dstBytesUsedP
The destination bytes used.
glyphCount
The number of glyphs.
fontIndexP
The font index.
printClient
The control structure.

Returns

true if successful, false otherwise.

PDFontPSFlushIncrGlyphList

Header: PDFLProcs.h:433

Description

Flush the incremental glyphs list from a stream. This is the default FlushIncrGlyphList callback procedure for the PDPrintClient structure.

Syntax

void PDFontPSFlushIncrGlyphList(ASStm stm, PDPrintClient printClient);

Parameters

stm
The stream.
printClient
The control structure.

PDFontPSGetComponentFontList

Header: PDFLProcs.h:422

Description

Get the component font list. This is the default GetComponentFontList callback procedure for the PDPrintClient structure.

Syntax

void PDFontPSGetComponentFontList(PDFont fontP, PDPrintFontArrayP pdFontArr, PDPrintClient printClient);

Parameters

fontP
The font.
pdFontArr
The font array.
printClient
The control structure.

PDFontStreamPS

Header: PDFLProcs.h:252

Description

Emits a font into a specified stream. The font is in a format suitable for downloading to a PostScript VM. For example, a TrueType font is converted into a Type 1 or Type 42 font.

It is meant for use in the EmitFont callback for PDDocPrintPages().

Syntax

ASBool PDFontStreamPS(PDFont fontP, ASStm stm, PDFontDownloadContext context);

Parameters

fontP
The font to emit.
stm
The ASStm into which the font is emitted.
context
A context created by PDFontDownloadContextCreate.

Returns

true if successful, false otherwise.

PDFontWasExtracted

Header: PDFLProcs.h:298

Description

Tests whether the specified font is embedded in the PDF file and has already been extracted to display or print the file.

Syntax

ASBool PDFontWasExtracted(PDFont fontP);

Parameters

fontP
The font to test.

Returns

true if the font is embedded in the PDF file and has been extracted, false otherwise.

PDFontWasFauxed

Header: PDFLProcs.h:314

Description

Tests whether the specified font is embedded in the PDF file or is installed in the user's system. If this is the case, the correct font can be used for display and printing.

If the font is not embedded or installed, the Acrobat viewer has used a Multiple Master font to create a substitute font, called a faux font.

Related Methods

Syntax

ASBool PDFontWasFauxed(PDFont font);

Parameters

font
The font to test.

Returns

true if the font has been substituted, false otherwise.