Manages fonts across the presentation. More...
Inherits System::Object.
Inherited by Aspose::Slides::FontsManager.
Public Member Functions | |
virtual System::SharedPtr< IFontSubstRuleCollection > | get_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< IFontFallBackRulesCollection > | get_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); | |
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); | |
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... | |
![]() | |
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... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
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 TypeInfo & | GetType () 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 | |
![]() | |
typedef SmartPtr< Object > | ptr |
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 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 TypeInfo & | Type () |
Impleemnts C# typeof(System.Object) construct. More... | |
Manages fonts across the presentation.
|
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.
System::ArgumentException | An ArgumentException can be thrown if font data is null or this font is already embedded |
|
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.
System::ArgumentException | An ArgumentException can be thrown if font data is null or this font is already embedded |
Implemented in Aspose::Slides::FontsManager.
|
pure virtual |
Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality
Read IFontFallBackRulesCollection.
Implemented in Aspose::Slides::FontsManager.
|
pure virtual |
Font substitutions to use when rendering Read IFontSubstRuleCollection.
Implemented in Aspose::Slides::FontsManager.
|
pure virtual |
Returns the fonts embedded in the presentation
Implemented in Aspose::Slides::FontsManager.
|
pure virtual |
Returns the fonts used in the presentation
Implemented in Aspose::Slides::FontsManager.
|
pure virtual |
Removes the embedded font
|
pure virtual |
Replace font in presentation
sourceFont | Source font |
destFont | Destination font |
|
pure virtual |
Replace font in presentation using information provided in IFontSubstRule
substRule | Font substitution info |
|
pure virtual |
Replace font in presentation using information provided in collection of IFontSubstRule
substRules | Font substitution info collection |
|
pure virtual |
Represents a user's collection of FontFallBack rules for managing of collections of fonts for proper substitutions by fallback functionality
Write IFontFallBackRulesCollection.
|
pure virtual |
Font substitutions to use when rendering Write IFontSubstRuleCollection.