SubsetAllFonts

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

SubsetAllFonts

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 EmbedAllFonts).

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.

property boolean VPE.SubsetAllFonts

read / write; runtime only

Possible values:

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 SetFontControl().

 

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.

VPE.EmbedAllFonts  = True

VPE.SubsetAllFonts = True