is_subsetting_needed property

FontSavingArgs.is_subsetting_needed property

Allows to specify whether the current font will be subsetted before exporting as a font resource.

@property
def is_subsetting_needed(self) -> bool:
    ...

@is_subsetting_needed.setter
def is_subsetting_needed(self, value: bool):
    ...

Remarks

Fonts can be exported as complete original font files or subsetted to include only the characters that are used in the document. Subsetting allows to reduce the resulting font resource size.

By default, Aspose.Words decides whether to perform subsetting or not by comparing the original font file size with the one specified in HtmlSaveOptions.font_resources_subsetting_size_threshold. You can override this behavior for individual fonts by setting the FontSavingArgs.is_subsetting_needed property.

See Also