Aspose::Pdf::Text::IFontSubstitutionRegistrator::RegistrySubstitution method

IFontSubstitutionRegistrator::RegistrySubstitution(System::SharedPtr<Aspose::Font::Sources::FontDefinition>, System::SharedPtr<Aspose::Font::Sources::FontDefinition>) method

Register substitution for fonts which are represented via FontDefinition objects. This method was added due to necessity to register “implicit” substitutions which have place in PdfFont object.

virtual void Aspose::Pdf::Text::IFontSubstitutionRegistrator::RegistrySubstitution(System::SharedPtr<Aspose::Font::Sources::FontDefinition> oldFontDef, System::SharedPtr<Aspose::Font::Sources::FontDefinition> newFontDef)=0
ParameterTypeDescription
oldFontDefSystem::SharedPtr<Aspose::Font::Sources::FontDefinition>Font definition for original font
newFontDefSystem::SharedPtr<Aspose::Font::Sources::FontDefinition>Font definition for new font

See Also

IFontSubstitutionRegistrator::RegistrySubstitution(System::SharedPtr<Aspose::Pdf::Engine::CommonData::Text::Fonts::IPdfFont>, System::SharedPtr<Aspose::Pdf::Engine::CommonData::Text::Fonts::IPdfFont>, System::SharedPtr<Aspose::Pdf::Engine::Data::ITrailerable>) method

Register substitution for passed fonts. Fonts passed as IPdfFont objects in this method.

virtual void Aspose::Pdf::Text::IFontSubstitutionRegistrator::RegistrySubstitution(System::SharedPtr<Aspose::Pdf::Engine::CommonData::Text::Fonts::IPdfFont> oldFont, System::SharedPtr<Aspose::Pdf::Engine::CommonData::Text::Fonts::IPdfFont> newFont, System::SharedPtr<Aspose::Pdf::Engine::Data::ITrailerable> trailerable)=0
ParameterTypeDescription
oldFontSystem::SharedPtr<Aspose::Pdf::Engine::CommonData::Text::Fonts::IPdfFont>original font
newFontSystem::SharedPtr<Aspose::Pdf::Engine::CommonData::Text::Fonts::IPdfFont>new font which replaces an original font
trailerableSystem::SharedPtr<Aspose::Pdf::Engine::Data::ITrailerable>trailerable

See Also