com.aspose.words
Class FontFallbackSettings

java.lang.Object
    extended by com.aspose.words.FontFallbackSettings

public class FontFallbackSettings 
extends java.lang.Object

Specifies font fallback mechanism settings. By default fallback settings are initialized with predefined settings which mimics the Microsoft Word fallback.

Method Summary
voidbuildAutomatic()
           Automatically builds the fallback settings by scanning available fonts.
voidload(java.io.InputStream stream)
           Loads fallback settings from XML stream.
voidload(java.lang.String fileName)
           Loads font fallback settings from XML file.
voidloadMsOfficeFallbackSettings()
           Loads predefined fallback settings which mimics the Microsoft Word fallback and uses Microsoft office fonts.
voidloadNotoFallbackSettings()
           Loads predefined fallback settings which uses Google Noto fonts.
voidsave(java.io.OutputStream stream)
           Saves the current fallback settings to stream.
voidsave(java.lang.String fileName)
           Saves the current fallback settings to file.
 

Method Detail

buildAutomatic

public void buildAutomatic()
Automatically builds the fallback settings by scanning available fonts. This method may produce non-optimal fallback settings. Fonts are checked by Unicode Character Range fields and not by the actual glyphs presence. Also Unicode ranges are checked individually and several ranges related to single language/script may use different fallback fonts.

load

public void load(java.io.InputStream stream)
         throws java.lang.Exception
Loads fallback settings from XML stream.
Parameters:
stream - Input stream.

load

public void load(java.lang.String fileName)
         throws java.lang.Exception
Loads font fallback settings from XML file.
Parameters:
fileName - Input file name.

loadMsOfficeFallbackSettings

public void loadMsOfficeFallbackSettings()
Loads predefined fallback settings which mimics the Microsoft Word fallback and uses Microsoft office fonts.

loadNotoFallbackSettings

public void loadNotoFallbackSettings()
                             throws java.lang.Exception
Loads predefined fallback settings which uses Google Noto fonts.

save

public void save(java.io.OutputStream stream)
         throws java.lang.Exception
Saves the current fallback settings to stream.
Parameters:
outputStream - Output stream.

save

public void save(java.lang.String fileName)
         throws java.lang.Exception
Saves the current fallback settings to file.
Parameters:
fileName - Output file name.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.