com.aspose.words

Class FontSubstitutionSettings

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

Specifies font substitution mechanism settings.

Font substitution process consists of several rules which are checked one by one in specific order. If the first rule can't resolve the font then second rule is checked and so on.

The order of the rules is following: 1. Font name substitution rule (enabled by default) 2. Font config substitution rule (disabled by default) 3. Table substitution rule (enabled by default) 4. Font info substitution rule (enabled by default) 5. Default font rule (enabled by default)

Note that font info substitution rule will always resolve the font if FontInfo is available and will override the default font rule. If you want to use the default font rule then you should disable the font info substitution rule.

Note that font config substitution rule will resolve the font in most cases and thus overrides all other rules.

Property Getters/Setters Summary
DefaultFontSubstitutionRulegetDefaultFontSubstitution()
Settings related to default font substitution rule.
FontConfigSubstitutionRulegetFontConfigSubstitution()
Settings related to font config substitution rule.
FontInfoSubstitutionRulegetFontInfoSubstitution()
Settings related to font info substitution rule.
FontNameSubstitutionRulegetFontNameSubstitution()
Settings related to font name substitution rule.
TableSubstitutionRulegetTableSubstitution()
Settings related to table substitution rule.
 

    • Property Getters/Setters Detail

      • getDefaultFontSubstitution

        public DefaultFontSubstitutionRule getDefaultFontSubstitution()
        
        Settings related to default font substitution rule.
      • getFontConfigSubstitution

        public FontConfigSubstitutionRule getFontConfigSubstitution()
        
        Settings related to font config substitution rule.
      • getFontInfoSubstitution

        public FontInfoSubstitutionRule getFontInfoSubstitution()
        
        Settings related to font info substitution rule.
      • getFontNameSubstitution

        public FontNameSubstitutionRule getFontNameSubstitution()
        
        Settings related to font name substitution rule.
      • getTableSubstitution

        public TableSubstitutionRule getTableSubstitution()
        
        Settings related to table substitution rule.