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:
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.
Shows how to access a document's system font source and set font substitutes.
#include <Aspose.Words.Cpp/Fonts/FontSubstitutionSettings.h>
Public Member Functions | |
SharedPtr< DefaultFontSubstitutionRule > | get_DefaultFontSubstitution () const |
Settings related to default font substitution rule. More... | |
SharedPtr< FontConfigSubstitutionRule > | get_FontConfigSubstitution () const |
Settings related to font config substitution rule. More... | |
SharedPtr< FontInfoSubstitutionRule > | get_FontInfoSubstitution () const |
Settings related to font info substitution rule. More... | |
SharedPtr< FontNameSubstitutionRule > | get_FontNameSubstitution () const |
Settings related to font name substitution rule. More... | |
SharedPtr< TableSubstitutionRule > | get_TableSubstitution () const |
Settings related to table substitution rule. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
Static Public Member Functions | |
static const TypeInfo & | Type () |
System::SharedPtr<Aspose::Words::Fonts::DefaultFontSubstitutionRule> Aspose::Words::Fonts::FontSubstitutionSettings::get_DefaultFontSubstitution | ( | ) | const |
Settings related to default font substitution rule.
Shows how to set the default font substitution rule.
System::SharedPtr<Aspose::Words::Fonts::FontConfigSubstitutionRule> Aspose::Words::Fonts::FontSubstitutionSettings::get_FontConfigSubstitution | ( | ) | const |
Settings related to font config substitution rule.
Shows operating system-dependent font config substitution.
System::SharedPtr<Aspose::Words::Fonts::FontInfoSubstitutionRule> Aspose::Words::Fonts::FontSubstitutionSettings::get_FontInfoSubstitution | ( | ) | const |
Settings related to font info substitution rule.
Shows how to set the property for finding the closest match for a missing font from the available font sources.
System::SharedPtr<Aspose::Words::Fonts::FontNameSubstitutionRule> Aspose::Words::Fonts::FontSubstitutionSettings::get_FontNameSubstitution | ( | ) | const |
Settings related to font name substitution rule.
System::SharedPtr<Aspose::Words::Fonts::TableSubstitutionRule> Aspose::Words::Fonts::FontSubstitutionSettings::get_TableSubstitution | ( | ) | const |
Settings related to table substitution rule.
Shows how to work with custom font substitution tables.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
|
static |