Table font substitution rule.
Shows how to access font substitution tables for Windows and Linux.
#include <Aspose.Words.Cpp/Fonts/TableSubstitutionRule.h>
Public Member Functions | |
void | AddSubstitutes (String originalFontName, const ArrayPtr< String > &substituteFontNames) |
Adds substitute font names for given original font name. More... | |
SharedPtr< IEnumerable< String > > | GetSubstitutes (String originalFontName) |
Returns array containing substitute font names for the specified original font name. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | Load (SharedPtr< Stream > stream) |
Loads table substitution settings from XML stream. More... | |
void | Load (String fileName) |
Loads table substitution settings from XML file. More... | |
void | LoadAndroidSettings () |
Loads predefined table substitution settings for Linux platform. More... | |
void | LoadLinuxSettings () |
Loads predefined table substitution settings for Linux platform. More... | |
void | LoadWindowsSettings () |
Loads predefined table substitution settings for Windows platform. More... | |
void | Save (SharedPtr< Stream > outputStream) |
Saves the current table substitution settings to stream. More... | |
void | Save (String fileName) |
Saves the current table substitution settings to file. More... | |
void | SetSubstitutes (String originalFontName, const ArrayPtr< String > &substituteFontNames) |
Override substitute font names for given original font name. More... | |
![]() | |
virtual bool | get_Enabled () |
Specifies whether the rule is enabled or not. More... | |
virtual void | set_Enabled (bool value) |
Setter for get_Enabled. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
void Aspose::Words::Fonts::TableSubstitutionRule::AddSubstitutes | ( | System::String | originalFontName, |
const System::ArrayPtr< System::String > & | substituteFontNames | ||
) |
Adds substitute font names for given original font name.
originalFontName | Original font name. |
substituteFontNames | List of alternative font names. |
Shows how to access a document's system font source and set font substitutes.
Shows how to work with custom font substitution tables.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::String> > Aspose::Words::Fonts::TableSubstitutionRule::GetSubstitutes | ( | System::String | originalFontName | ) |
Returns array containing substitute font names for the specified original font name.
originalFontName | Original font name. |
Shows how to access a document's system font source and set font substitutes.
Shows how to work with custom font substitution tables.
|
overridevirtual |
Reimplemented from Aspose::Words::Fonts::FontSubstitutionRule.
|
overridevirtual |
Reimplemented from Aspose::Words::Fonts::FontSubstitutionRule.
void Aspose::Words::Fonts::TableSubstitutionRule::Load | ( | System::SharedPtr< System::IO::Stream > | stream | ) |
Loads table substitution settings from XML stream.
stream | Input stream. |
Shows how to work with custom font substitution tables.
void Aspose::Words::Fonts::TableSubstitutionRule::Load | ( | System::String | fileName | ) |
Loads table substitution settings from XML file.
fileName | Input file name. |
Shows how to work with custom font substitution tables.
void Aspose::Words::Fonts::TableSubstitutionRule::LoadAndroidSettings | ( | ) |
Loads predefined table substitution settings for Linux platform.
void Aspose::Words::Fonts::TableSubstitutionRule::LoadLinuxSettings | ( | ) |
Loads predefined table substitution settings for Linux platform.
Shows how to access font substitution tables for Windows and Linux.
void Aspose::Words::Fonts::TableSubstitutionRule::LoadWindowsSettings | ( | ) |
Loads predefined table substitution settings for Windows platform.
Shows how to access font substitution tables for Windows and Linux.
void Aspose::Words::Fonts::TableSubstitutionRule::Save | ( | System::SharedPtr< System::IO::Stream > | outputStream | ) |
Saves the current table substitution settings to stream.
outputStream | Output stream. |
Shows how to access font substitution tables for Windows and Linux.
void Aspose::Words::Fonts::TableSubstitutionRule::Save | ( | System::String | fileName | ) |
Saves the current table substitution settings to file.
fileName | Output file name. |
Shows how to access font substitution tables for Windows and Linux.
void Aspose::Words::Fonts::TableSubstitutionRule::SetSubstitutes | ( | System::String | originalFontName, |
const System::ArrayPtr< System::String > & | substituteFontNames | ||
) |
Override substitute font names for given original font name.
originalFontName | Original font name. |
substituteFontNames | List of alternative font names. |
Shows how set font substitution rules.
Shows how to work with custom font substitution tables.
|
static |