set_FontFallBackRulesCollection()
Contents
[
Hide
]IFontsManager::set_FontFallBackRulesCollection(System::SharedPtr<IFontFallBackRulesCollection>) method
Represents a user’s collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality Write IFontFallBackRulesCollection.
virtual void Aspose::Slides::IFontsManager::set_FontFallBackRulesCollection(System::SharedPtr<IFontFallBackRulesCollection> value)=0
Remarks
auto pres = MakeObject<Presentation>();
// Getting of empty or preinitialized rules collection from FontsManager
auto rulesList = pres->get_FontsManager()->get_FontFallBackRulesCollection();
// adding of rules to collection
rulesList->Add(MakeObject<FontFallBackRule>(0x400, 0x4FF, u"Times New Roman"));
// or
// initialization of new instance of rules collection
auto rulesList = MakeObject<FontFallBackRulesCollection>();
// adding of rules to collection
rulesList->Add(MakeObject<FontFallBackRule>(0x400, 0x4FF, u"Times New Roman"));
// and replacing of existing collection by the new one in FontsManager
pres->get_FontsManager()->set_FontFallBackRulesCollection(rulesList);
See Also
- Typedef SharedPtr
- Class IFontFallBackRulesCollection
- Class IFontsManager
- Namespace Aspose::Slides
- Library Aspose.Slides