VpeSetSubsetAllFonts

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

VpeSetSubsetAllFonts

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

Sets the current mode for font subsetting. Only fonts that are embedded, can be subsetted (see VpeSetEmbedAllFonts).

Font Subsetting means, that VPE assembles on-the-fly a new font from the source font, that contains only the characters which are used in the document. A subsetted font is in regular much smaller than the original font, which results in significantly smaller documents.

void VpeSetSubsetAllFonts(

VpeHandle hDoc,

int yes_no

)

VpeHandle hDoc

Document Handle

int yes_no

Value

Description

True

the True-Type fonts that are used in the document are subsetted

False

the True-Type fonts that are used in the document are not subsetted

Default:

False

Remarks:

This property controls the default behaviour of VPE. You can override this property individually for each font by using the method VpeSetFontControl().

 

VPE does only subset True-Type fonts, it will not subset PostScript fonts.

 

Please note: Font Subsetting does not work correctly for Adobe Acrobat 4, if you are using character sets which are different from ANSI_CHARSET. So subsetting of all western character sets is supported for Acrobat 4, too.

Example:

The following code activates font embedding, which is required for font-subsetting, and then activates font-subsetting.

VpeSetEmbedAllFonts(hDoc, TRUE);

VpeSetSubsetAllFonts(hDoc, TRUE);