saveSubsetFonts property
FontInfoCollection.saveSubsetFonts property
Specifies whether or not to save a subset of the embedded TrueType fonts with the document.
Default value for this property is false
.
This option works only when FontInfoCollection.embedTrueTypeFonts property is set to true
.
get saveSubsetFonts(): boolean
Remarks
This option works for DOC, DOCX and RTF formats only.
Examples
Shows how to save a document with embedded TrueType fonts.
let doc = new aw.Document(base.myDir + "Document.docx");
let fontInfos = doc.fontInfos;
fontInfos.embedTrueTypeFonts = embedAllFonts;
fontInfos.embedSystemFonts = embedAllFonts;
fontInfos.saveSubsetFonts = embedAllFonts;
doc.save(base.artifactsDir + "Font.FontInfoCollection.docx");
See Also
- module Aspose.Words.Fonts
- class FontInfoCollection