GetSubstitutions()
Contents
[
Hide
]FontsManager::GetSubstitutions() method
Gets the information about fonts that will be replaced on the presentation’s rendering.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Slides::FontSubstitutionInfo>>> Aspose::Slides::FontsManager::GetSubstitutions() override
Return Value
Collection of all fonts substitution FontSubstitutionInfo.
Remarks
auto pres = System::MakeObject<Presentation>(u"pres.pptx");
for (auto&& fontSubstitution : pres->get_FontsManager()->GetSubstitutions())
{
System::Console::WriteLine(u"{0} -> {1}", fontSubstitution->get_OriginalFontName(), fontSubstitution->get_SubstitutedFontName());
}
FontsManager::GetSubstitutions(System::ArrayPtr<int32_t>) method
Gets the information about fonts that will be replaced during rendering of the specified slides.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Slides::FontSubstitutionInfo>>> Aspose::Slides::FontsManager::GetSubstitutions(System::ArrayPtr<int32_t> slides) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| slides | System::ArrayPtr<int32_t> | An array of slide indexes for which to retrieve font substitution information, starting from 1. |
Return Value
A collection of all font substitutions (FontSubstitutionInfo) for the specified slides.
Remarks
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
System::ArrayPtr<int32_t> targetSlides = System::MakeArray<int32_t>({1, 2, 5});
for (auto&& fontSubstitution : pres->get_FontsManager()->GetSubstitutions(targetSlides))
{
System::Console::WriteLine(u"{0} -> {1}", fontSubstitution->get_OriginalFontName(), fontSubstitution->get_SubstitutedFontName());
}
See Also
- Typedef SharedPtr
- Typedef ArrayPtr
- Class IEnumerable
- Class FontSubstitutionInfo
- Class FontsManager
- Namespace Aspose::Slides
- Library Aspose.Slides