Create Fallback Fonts Collection
Instances of FontFallBackRule class can be organized into FontFallBackRulesCollection, that implements IFontFallBackRulesCollection interface. It is possible to add or remove rules from the collection.
Then this collection may be passed to set_FontFallBackRulesCollection() method of the FontsManager class. FontsManager controls fonts across the presentation. Read more About FontsManager and FontsLoader.
Each Presentation has a get_FontsManager() method with its own instance of the FontsManager class.
Here is an examples how to create fallback fonts rules collection and assign in into the FontsManager of a certain presentation:
auto presentation = MakeObject<Presentation>();
auto userRulesList = MakeObject<FontFallBackRulesCollection>();
userRulesList->Add(MakeObject<FontFallBackRule>(static_cast<uint32_t>(0x0B80), static_cast<uint32_t>(0x0BFF), u"Vijaya"));
userRulesList->Add(MakeObject<FontFallBackRule>(static_cast<uint32_t>(0x3040), static_cast<uint32_t>(0x309F), u"MS Mincho, MS Gothic"));
presentation->get_FontsManager()->set_FontFallBackRulesCollection(userRulesList);
After FontsManager is initialised with fallback fonts collection, the fallback fonts are applied during presentation rendering.