Aspose::Slides::IFontsManager Class Referenceabstract

Manages fonts across the presentation. More...

Inherits System::Object.

Inherited by Aspose::Slides::FontsManager.

Public Member Functions

virtual System::SharedPtr< IFontSubstRuleCollectionget_FontSubstRuleList ()=0
 Font substitutions to use when rendering Read IFontSubstRuleCollection. More...
 
virtual void set_FontSubstRuleList (System::SharedPtr< IFontSubstRuleCollection > value)=0
 Font substitutions to use when rendering Write IFontSubstRuleCollection. More...
 
virtual System::SharedPtr< IFontFallBackRulesCollectionget_FontFallBackRulesCollection ()=0
 Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality

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);

Read IFontFallBackRulesCollection. More...

 
virtual void set_FontFallBackRulesCollection (System::SharedPtr< IFontFallBackRulesCollection > value)=0
 Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality

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);

Write IFontFallBackRulesCollection. More...

 
virtual System::ArrayPtr< System::SharedPtr< IFontData > > GetFonts ()=0
 Returns the fonts used in the presentation More...
 
virtual System::ArrayPtr< System::SharedPtr< IFontData > > GetEmbeddedFonts ()=0
 Returns the fonts embedded in the presentation More...
 
virtual void RemoveEmbeddedFont (System::SharedPtr< IFontData > fontData)=0
 Removes the embedded font More...
 
virtual void AddEmbeddedFont (System::SharedPtr< IFontData > fontData, Export::EmbedFontCharacters embedFontRule)=0
 Adds the embedded font. More...
 
virtual void AddEmbeddedFont (System::ArrayPtr< uint8_t > fontData, Export::EmbedFontCharacters embedFontRule)=0
 Adds the embedded font More...
 
virtual void ReplaceFont (System::SharedPtr< IFontData > sourceFont, System::SharedPtr< IFontData > destFont)=0
 Replace font in presentation More...
 
virtual void ReplaceFont (System::SharedPtr< IFontSubstRule > substRule)=0
 Replace font in presentation using information provided in IFontSubstRule More...
 
virtual void ReplaceFont (System::SharedPtr< IFontSubstRuleCollection > substRules)=0
 Replace font in presentation using information provided in collection of IFontSubstRule More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Manages fonts across the presentation.

Member Function Documentation

◆ AddEmbeddedFont() [1/2]

virtual void Aspose::Slides::IFontsManager::AddEmbeddedFont ( System::SharedPtr< IFontData fontData,
Export::EmbedFontCharacters  embedFontRule 
)
pure virtual

Adds the embedded font.

Keep in mind when copying any fonts that most fonts are copyrighted. First locate the license of a font before hand and verify they can be freely transferred to another machine.

Exceptions
System::ArgumentExceptionAn ArgumentException can be thrown if font data is null or this font is already embedded

◆ AddEmbeddedFont() [2/2]

virtual void Aspose::Slides::IFontsManager::AddEmbeddedFont ( System::ArrayPtr< uint8_t >  fontData,
Export::EmbedFontCharacters  embedFontRule 
)
pure virtual

Adds the embedded font

Keep in mind when adding any fonts that most fonts are copyrighted. First locate the license of a font before hand and verify they can be freely transferred to another machine.

Exceptions
System::ArgumentExceptionAn ArgumentException can be thrown if font data is null or this font is already embedded

Implemented in Aspose::Slides::FontsManager.

◆ get_FontFallBackRulesCollection()

virtual System::SharedPtr<IFontFallBackRulesCollection> Aspose::Slides::IFontsManager::get_FontFallBackRulesCollection ( )
pure virtual

Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality

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);

Read IFontFallBackRulesCollection.

Implemented in Aspose::Slides::FontsManager.

◆ get_FontSubstRuleList()

virtual System::SharedPtr<IFontSubstRuleCollection> Aspose::Slides::IFontsManager::get_FontSubstRuleList ( )
pure virtual

Font substitutions to use when rendering Read IFontSubstRuleCollection.

Implemented in Aspose::Slides::FontsManager.

◆ GetEmbeddedFonts()

virtual System::ArrayPtr<System::SharedPtr<IFontData> > Aspose::Slides::IFontsManager::GetEmbeddedFonts ( )
pure virtual

Returns the fonts embedded in the presentation

Implemented in Aspose::Slides::FontsManager.

◆ GetFonts()

virtual System::ArrayPtr<System::SharedPtr<IFontData> > Aspose::Slides::IFontsManager::GetFonts ( )
pure virtual

Returns the fonts used in the presentation

Returns
An array of fonts

Implemented in Aspose::Slides::FontsManager.

◆ RemoveEmbeddedFont()

virtual void Aspose::Slides::IFontsManager::RemoveEmbeddedFont ( System::SharedPtr< IFontData fontData)
pure virtual

Removes the embedded font

◆ ReplaceFont() [1/3]

virtual void Aspose::Slides::IFontsManager::ReplaceFont ( System::SharedPtr< IFontData sourceFont,
System::SharedPtr< IFontData destFont 
)
pure virtual

Replace font in presentation

Parameters
sourceFontSource font
destFontDestination font

◆ ReplaceFont() [2/3]

virtual void Aspose::Slides::IFontsManager::ReplaceFont ( System::SharedPtr< IFontSubstRule substRule)
pure virtual

Replace font in presentation using information provided in IFontSubstRule

Parameters
substRuleFont substitution info

◆ ReplaceFont() [3/3]

virtual void Aspose::Slides::IFontsManager::ReplaceFont ( System::SharedPtr< IFontSubstRuleCollection substRules)
pure virtual

Replace font in presentation using information provided in collection of IFontSubstRule

Parameters
substRulesFont substitution info collection

◆ set_FontFallBackRulesCollection()

virtual void Aspose::Slides::IFontsManager::set_FontFallBackRulesCollection ( System::SharedPtr< IFontFallBackRulesCollection value)
pure virtual

Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality

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);

Write IFontFallBackRulesCollection.

◆ set_FontSubstRuleList()

virtual void Aspose::Slides::IFontsManager::set_FontSubstRuleList ( System::SharedPtr< IFontSubstRuleCollection value)
pure virtual

Font substitutions to use when rendering Write IFontSubstRuleCollection.