com.aspose.words

Class ExportFontFormat

  • java.lang.Object
    • com.aspose.words.ExportFontFormat
public class ExportFontFormat 
extends java.lang.Object

Utility class containing constants. Indicates the format that is used to export fonts while rendering to HTML fixed format.

Example:

Shows how use fonts only from the target machine when saving a document to HTML.
Document doc = new Document(getMyDir() + "Bullet points with alternative font.docx");

HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions();
{
    saveOptions.setExportEmbeddedCss(true);
    saveOptions.setUseTargetMachineFonts(useTargetMachineFonts);
    saveOptions.setFontFormat(ExportFontFormat.TTF);
    saveOptions.setExportEmbeddedFonts(false);
}

doc.save(getArtifactsDir() + "HtmlFixedSaveOptions.UsingMachineFonts.html", saveOptions);
See Also:
HtmlFixedSaveOptions.FontFormat

Field Summary
static final intWOFF = 0
WOFF (Web Open Font Format).
static final intTTF = 1
TTF (TrueType Font format).
 

    • Field Detail

      • WOFF = 0

        public static final int WOFF
        WOFF (Web Open Font Format).
      • TTF = 1

        public static final int TTF
        TTF (TrueType Font format).