Represents base Font class. More...
Inherits Aspose::Font::IFont, Aspose::Font::Glyphs::IGlyphAccessor, Aspose::Font::IFontSaver, and Aspose::Font::Licensing::IVentureLicenseTarget.
Inherited by Aspose::Font::Cff::CffFont, Aspose::Font::Ttf::TtfFont, and Aspose::Font::Type1::Type1Font.
Public Member Functions | |
ASPOSE_FONT_SHARED_API Aspose::Font::FontType | get_FontType () override=0 |
Gets Font type. More... | |
ASPOSE_FONT_SHARED_API System::String | get_Style () override=0 |
Gets or Sets Font style. This is a raw string value provided by Font file. More... | |
ASPOSE_FONT_SHARED_API void | set_Style (System::String value) override=0 |
Gets or Sets Font style. This is a raw string value provided by Font file. More... | |
ASPOSE_FONT_SHARED_API Aspose::Font::FontStyle | get_FontStyle () override=0 |
Gets Font style. This is a value computed and represented in generalized type. More... | |
ASPOSE_FONT_SHARED_API System::String | get_FontFamily () override=0 |
Gets or Sets Font family. More... | |
ASPOSE_FONT_SHARED_API void | set_FontFamily (System::String value) override=0 |
Gets or Sets Font family. More... | |
ASPOSE_FONT_SHARED_API System::String | get_FontName () override=0 |
Gets or Sets Font face name. More... | |
ASPOSE_FONT_SHARED_API void | set_FontName (System::String value) override=0 |
Gets or Sets Font face name. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageString > | get_FontNames () override=0 |
Gets Font names. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageString > | get_PostscriptNames () override=0 |
Gets postscript Font names. More... | |
ASPOSE_FONT_SHARED_API int32_t | get_NumGlyphs () override=0 |
Gets number of glyphs in the Font. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontMetrics > | get_Metrics () override=0 |
Gets Font metrics. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontEncoding > | get_Encoding () override=0 |
Gets Font encoding. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< Glyphs::IGlyphAccessor > | get_GlyphAccessor () override |
Font glyph accessor. Retrieves glyphs and glyph identifiers. More... | |
ASPOSE_FONT_SHARED_API Aspose::Font::Glyphs::GlyphIdType | get_GlyphIdType () override=0 |
Glyph id type specification. For consumers who needs to know the 'bytes[]' real type. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Sources::FontDefinition > | get_FontDefinition () override=0 |
Gets Font definition. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontSaver > | get_FontSaver () override |
Gets Font save functionality. More... | |
ASPOSE_FONT_SHARED_API void | Save (System::SharedPtr< System::IO::Stream > stream) override |
Saves the Font into original format. More... | |
ASPOSE_FONT_SHARED_API void | Save (System::String fileName) override |
Saves the Font into original format. More... | |
ASPOSE_FONT_SHARED_API void | SaveToFormat (System::SharedPtr< System::IO::Stream > stream, FontSavingFormats outFormat) override |
Saves the Font into format specified. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Font > | Convert (Aspose::Font::FontType fontType) override=0 |
Converts the Font into another format. More... | |
ASPOSE_FONT_SHARED_API System::ArrayPtr< System::SharedPtr< Glyphs::GlyphId > > | GetGlyphsForText (System::String text) override |
Gets glyphs representation for text. More... | |
ASPOSE_FONT_SHARED_API System::SharedPtr< Glyphs::Glyph > | GetGlyphById (System::SharedPtr< Glyphs::GlyphId > id) override=0 |
Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. GlyphId - derived object. For example: Type1's id is a glyph name, instance of (GlyphStringId) class. TTF's id is an int index, instance of (GlyphUInt32Id) class. More... | |
ASPOSE_FONT_SHARED_API System::ArrayPtr< System::SharedPtr< Glyphs::GlyphId > > | GetAllGlyphIds () override=0 |
Returns all glyph ids, available in the Font. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1's id is a glyph name, instance of (GlyphStringId) class. TTF's id is an int index, instance of (GlyphUInt32Id) class. More... | |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | 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 reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | Equals (double const &objA, double const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
Specialization of Object::ReferenceEquals for case of string and nullptr. More... | |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Specialization of Object::ReferenceEquals for case of strings. More... | |
![]() | |
virtual System::SharedPtr< Glyph > | GetGlyphById (System::SharedPtr< GlyphId > id)=0 |
Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. GlyphId - derived object. For example: Type1's id is a glyph name, instance of (GlyphStringId) class. TTF's id is an int index, instance of (GlyphUInt32Id) class. More... | |
![]() | |
virtual void | SetVentureLicense (System::SharedPtr< VentureLicense > license)=0 |
Static Public Member Functions | |
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Font > | Open (System::SharedPtr< Aspose::Font::Sources::FontDefinition > fontDefinition) |
Opens a font, using FontDefinition object. More... | |
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Font > | Open (Aspose::Font::FontType fontType, System::SharedPtr< Sources::StreamSource > fontStreamSource) |
Opens a font, using font type and stream source. More... | |
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Font > | Open (Aspose::Font::FontType fontType, System::String fileName) |
Opens a font, using font type and font file name. More... | |
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Font > | Open (Aspose::Font::FontType fontType, System::ArrayPtr< uint8_t > fontData) |
Opens a font, using font type and font data byte array. 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 () |
Implements C# typeof(System.Object) construct. More... | |
Protected Types | |
enum | FontSaveRequirements : uint8_t { FontSaveRequirements::SaveAllTables, FontSaveRequirements::SavePdfTables } |
Protected Member Functions | |
System::SharedPtr< Rendering::FontRenderingContext > | get_RenderingContext () const |
bool | get_IsVentureLicensed () |
Gets venture licensed state of the object. Returns true if font has venture license and false otherwise. More... | |
virtual ASPOSE_FONT_SHARED_API void | set_FontNames (System::SharedPtr< MultiLanguageString > value)=0 |
Gets Font names. More... | |
virtual ASPOSE_FONT_SHARED_API void | set_PostscriptNames (System::SharedPtr< MultiLanguageString > value)=0 |
Gets postscript Font names. More... | |
Font () | |
void | Save (System::SharedPtr< System::IO::Stream > stream, Font::FontSaveRequirements saveRequirements) |
void | Save (System::String fileName, Font::FontSaveRequirements saveRequirements) |
virtual System::SharedPtr< IFontSubset > | DoSubset ()=0 |
Creates font subset More... | |
virtual ASPOSE_FONT_SHARED_API | ~Font () |
Static Protected Member Functions | |
static System::SharedPtr< Aspose::Font::Font > | Open (System::SharedPtr< IFontSource > fontSource, System::SharedPtr< Sources::IFontSearcher > fontSearchSpec) |
Opens a font: searches for the Font in font source, represented with IFontSource. More... | |
static System::SharedPtr< Aspose::Font::Font > | Create (Aspose::Font::FontType fontType) |
Creates new font. More... | |
static System::SharedPtr< Aspose::Font::Font > | Create (Aspose::Font::FontType fontType, System::SharedPtr< Aspose::Font::Font > baseFont, System::SharedPtr< FontAdoptionOptions > fontAdoptionOptions) |
Creates new font based on other font. FontAdoptionOptions object defines a way how the baseFont is used with the new font creation. More... | |
static void | SplitSubsetFontName (System::String subsetFontName, System::String &fontName, System::String &subsetTag) |
Splits subset font name and returns font name and subset tag More... | |
static Aspose::Font::FontStyle | ParseAndGeneralizeFontStyle (System::String fontStyle) |
Parsing the font style information More... | |
Protected Attributes | |
System::SharedPtr< Aspose::Font::Glyphs::GlyphsStatistic > | GlyphsStatistic |
To hold statistic about glyphs operations More... | |
Additional Inherited Members | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Represents base Font class.
|
strongprotected |
|
protected |
|
protectedvirtual |
|
overridepure virtual |
Converts the Font into another format.
Note: TTF Font type is now supported only.
fontType | Font format type to convert into. |
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
staticprotected |
Creates new font.
Note: TTF font type is now supported only.
fontType | Font type. |
|
staticprotected |
Creates new font based on other font. FontAdoptionOptions object defines a way how the baseFont is used with the new font creation.
Note: TTF font type is now supported only.
fontType | Font type. |
baseFont | Font to take settings from. |
fontAdoptionOptions | Options to manage how the baseFont settings affects new font settings. |
|
protectedpure virtual |
Creates font subset
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridepure virtual |
Gets Font encoding.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Gets Font definition.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridepure virtual |
Gets or Sets Font family.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Gets or Sets Font face name.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Gets Font names.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridevirtual |
Gets Font save functionality.
Implements Aspose::Font::IFont.
|
overridepure virtual |
Gets Font style. This is a value computed and represented in generalized type.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Gets Font type.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridevirtual |
Font glyph accessor. Retrieves glyphs and glyph identifiers.
Implements Aspose::Font::IFont.
|
overridepure virtual |
Glyph id type specification. For consumers who needs to know the 'bytes[]' real type.
Implements Aspose::Font::Glyphs::IGlyphAccessor.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
protected |
Gets venture licensed state of the object. Returns true if font has venture license and false otherwise.
|
overridepure virtual |
Gets Font metrics.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridepure virtual |
Gets number of glyphs in the Font.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Gets postscript Font names.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
protected |
|
overridepure virtual |
Gets or Sets Font style. This is a raw string value provided by Font file.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Returns all glyph ids, available in the Font. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1's id is a glyph name, instance of (GlyphStringId) class. TTF's id is an int index, instance of (GlyphUInt32Id) class.
Implements Aspose::Font::Glyphs::IGlyphAccessor.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, Aspose::Font::Type1::Type1Font, and Aspose::Font::Type1::Type1MetricFont.
|
overridepure virtual |
Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. GlyphId - derived object. For example: Type1's id is a glyph name, instance of (GlyphStringId) class. TTF's id is an int index, instance of (GlyphUInt32Id) class.
id | Glyph id. |
|
overridevirtual |
Gets glyphs representation for text.
text | Input text. |
Implements Aspose::Font::Glyphs::IGlyphAccessor.
Reimplemented in Aspose::Font::Ttf::TtfFont.
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
Opens a font: searches for the Font in font source, represented with IFontSource.
fontSource | font source. |
fontSearchSpec | font searcher. |
|
staticprotected |
Parsing the font style information
|
overridevirtual |
|
overridevirtual |
|
protected |
|
protected |
|
overridevirtual |
Saves the Font into format specified.
stream | stream to save font |
outFormat | desired format |
Implements Aspose::Font::IFontSaver.
|
overridepure virtual |
Gets or Sets Font family.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridepure virtual |
Gets or Sets Font face name.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
protectedpure virtual |
Gets Font names.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
protectedpure virtual |
Gets postscript Font names.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
overridepure virtual |
Gets or Sets Font style. This is a raw string value provided by Font file.
Implements Aspose::Font::IFont.
Implemented in Aspose::Font::Ttf::TtfFont, Aspose::Font::Cff::CffFont, and Aspose::Font::Type1::Type1Font.
|
staticprotected |
Splits subset font name and returns font name and subset tag
subsetFontName | full name of font subset |
fontName | font name part |
subsetTag | tag part |
|
protected |
To hold statistic about glyphs operations