Represents a Font glyph. More...

Inherits System::ICloneable.

Inherited by Aspose::Font::Glyphs::CompositeGlyph.

Classes

class  InitialDataContainer
 

Public Member Functions

ASPOSE_FONT_SHARED_API GlyphState get_State () const
 Gets glyph state. More...
 
ASPOSE_FONT_SHARED_API bool get_IsEmpty ()
 True if the glyph doesn't contain drawing instructions. More...
 
virtual ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::RenderingPath::SegmentPathget_Path ()
 Gets glyph path. More...
 
ASPOSE_FONT_SHARED_API double get_LeftSidebearingX ()
 Gets glyph side bearing x coordinate. More...
 
ASPOSE_FONT_SHARED_API double get_LeftSidebearingY ()
 Gets glyph side bearing y coordinate. More...
 
ASPOSE_FONT_SHARED_API double get_WidthVectorX () const
 Gets glyph width vector. Coordinate x. More...
 
ASPOSE_FONT_SHARED_API double get_WidthVectorY () const
 Gets glyph width vector. Coordinate y. More...
 
ASPOSE_FONT_SHARED_API int32_t get_SourceResolution () const
 Gets resolution of the source command set. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< FontBBoxget_GlyphBBox ()
 Gets glyph BBox. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< System::ObjectClone () override
 Returns copy of glyph. More...
 
- Public Member Functions inherited from System::Object
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...
 
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 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 TypeInfoGetType () 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...
 

Protected Member Functions

virtual ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::RenderingPath::PathDefinition > get_PathDefinition ()
 Gets PathDefinition. More...
 
virtual ASPOSE_FONT_SHARED_API void set_PathDefinition (System::SharedPtr< Aspose::Font::RenderingPath::PathDefinition > value)
 Sets PathDefinition. More...
 
System::SharedPtr< Glyph::InitialDataContainerget_InitialData () const
 Gets initial glyph data. More...
 
void set_InitialData (System::SharedPtr< Glyph::InitialDataContainer > value)
 Sets initial glyph data. More...
 
ASPOSE_FONT_SHARED_API void set_State (GlyphState value)
 Gets glyph state. More...
 
ASPOSE_FONT_SHARED_API void set_LeftSidebearingX (double value)
 Gets glyph side bearing x coordinate. More...
 
ASPOSE_FONT_SHARED_API void set_LeftSidebearingY (double value)
 Gets glyph side bearing y coordinate. More...
 
ASPOSE_FONT_SHARED_API void set_WidthVectorX (double value)
 Gets glyph width vector. Coordinate x. More...
 
ASPOSE_FONT_SHARED_API void set_WidthVectorY (double value)
 Gets glyph width vector. Coordinate y. More...
 
ASPOSE_FONT_SHARED_API void set_SourceResolution (int32_t value)
 Gets resolution of the source command set. More...
 
ASPOSE_FONT_SHARED_API void set_GlyphBBox (System::SharedPtr< FontBBox > value)
 Gets glyph BBox. More...
 
System::SharedPtr< Aspose::Font::Rendering::Hinting::HintCollections > get_HintCollections () const
 Collection of all hint collections of the glyph More...
 
 Glyph ()
 Initializes new glyph object. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Glyph, CODEPORTING_ARGS())
 
void BuildBBox (System::SharedPtr< FontBBox > bbox)
 
virtual ASPOSE_FONT_SHARED_API System::SharedPtr< GlyphCreate ()
 Designed for glyph copy operations. An objective - to be helper as pattern factory method for method Clone(). Design - method Clone() is need to create correct Glyph object independently from where this method called - base Glyph class or in descendant classes like CompositeGlyph - in any case correct object must be instantiated. So, this method must take care for creation of correct Glyph object. Method Clone() to return correct copy of Glyh object will call this method Create(), get new appropriate Glyph object and then fill this new object with data from source Glyph object. More...
 

Protected Attributes

System::SharedPtr< Aspose::Font::RenderingPath::SegmentPathpath
 
System::SharedPtr< Aspose::Font::RenderingPath::PathDefinition > _pathDefinition
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. 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 ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a Font glyph.

Constructor & Destructor Documentation

◆ Glyph()

Aspose::Font::Glyphs::Glyph::Glyph ( )
protected

Initializes new glyph object.

Member Function Documentation

◆ BuildBBox()

void Aspose::Font::Glyphs::Glyph::BuildBBox ( System::SharedPtr< FontBBox bbox)
protected

◆ Clone()

ASPOSE_FONT_SHARED_API System::SharedPtr<System::Object> Aspose::Font::Glyphs::Glyph::Clone ( )
overridevirtual

Returns copy of glyph.

Returns
Copy of Glyph.

Implements System::ICloneable.

◆ Create()

virtual ASPOSE_FONT_SHARED_API System::SharedPtr<Glyph> Aspose::Font::Glyphs::Glyph::Create ( )
protectedvirtual

Designed for glyph copy operations. An objective - to be helper as pattern factory method for method Clone(). Design - method Clone() is need to create correct Glyph object independently from where this method called - base Glyph class or in descendant classes like CompositeGlyph - in any case correct object must be instantiated. So, this method must take care for creation of correct Glyph object. Method Clone() to return correct copy of Glyh object will call this method Create(), get new appropriate Glyph object and then fill this new object with data from source Glyph object.

Returns
Glyph object

Reimplemented in Aspose::Font::Glyphs::CompositeGlyph.

◆ get_GlyphBBox()

ASPOSE_FONT_SHARED_API System::SharedPtr<FontBBox> Aspose::Font::Glyphs::Glyph::get_GlyphBBox ( )

Gets glyph BBox.

◆ get_HintCollections()

System::SharedPtr<Aspose::Font::Rendering::Hinting::HintCollections> Aspose::Font::Glyphs::Glyph::get_HintCollections ( ) const
protected

Collection of all hint collections of the glyph

every glyph outline path segment has it's own hing collection this collection contains a collection of all hint collections that are used by all glyphs of the path

◆ get_InitialData()

System::SharedPtr<Glyph::InitialDataContainer> Aspose::Font::Glyphs::Glyph::get_InitialData ( ) const
protected

Gets initial glyph data.

◆ get_IsEmpty()

ASPOSE_FONT_SHARED_API bool Aspose::Font::Glyphs::Glyph::get_IsEmpty ( )

True if the glyph doesn't contain drawing instructions.

◆ get_LeftSidebearingX()

ASPOSE_FONT_SHARED_API double Aspose::Font::Glyphs::Glyph::get_LeftSidebearingX ( )

Gets glyph side bearing x coordinate.

◆ get_LeftSidebearingY()

ASPOSE_FONT_SHARED_API double Aspose::Font::Glyphs::Glyph::get_LeftSidebearingY ( )

Gets glyph side bearing y coordinate.

◆ get_Path()

virtual ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::RenderingPath::SegmentPath> Aspose::Font::Glyphs::Glyph::get_Path ( )
virtual

Gets glyph path.

◆ get_PathDefinition()

virtual ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::RenderingPath::PathDefinition> Aspose::Font::Glyphs::Glyph::get_PathDefinition ( )
protectedvirtual

Gets PathDefinition.

Reimplemented in Aspose::Font::Glyphs::CompositeGlyph.

◆ get_SourceResolution()

ASPOSE_FONT_SHARED_API int32_t Aspose::Font::Glyphs::Glyph::get_SourceResolution ( ) const

Gets resolution of the source command set.

◆ get_State()

ASPOSE_FONT_SHARED_API GlyphState Aspose::Font::Glyphs::Glyph::get_State ( ) const

Gets glyph state.

◆ get_WidthVectorX()

ASPOSE_FONT_SHARED_API double Aspose::Font::Glyphs::Glyph::get_WidthVectorX ( ) const

Gets glyph width vector. Coordinate x.

◆ get_WidthVectorY()

ASPOSE_FONT_SHARED_API double Aspose::Font::Glyphs::Glyph::get_WidthVectorY ( ) const

Gets glyph width vector. Coordinate y.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Font::Glyphs::Glyph::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Glyph  ,
CODEPORTING_ARGS()   
)
protected

◆ set_GlyphBBox()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_GlyphBBox ( System::SharedPtr< FontBBox value)
protected

Gets glyph BBox.

◆ set_InitialData()

void Aspose::Font::Glyphs::Glyph::set_InitialData ( System::SharedPtr< Glyph::InitialDataContainer value)
protected

Sets initial glyph data.

◆ set_LeftSidebearingX()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_LeftSidebearingX ( double  value)
protected

Gets glyph side bearing x coordinate.

◆ set_LeftSidebearingY()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_LeftSidebearingY ( double  value)
protected

Gets glyph side bearing y coordinate.

◆ set_PathDefinition()

virtual ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_PathDefinition ( System::SharedPtr< Aspose::Font::RenderingPath::PathDefinition >  value)
protectedvirtual

Sets PathDefinition.

Reimplemented in Aspose::Font::Glyphs::CompositeGlyph.

◆ set_SourceResolution()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_SourceResolution ( int32_t  value)
protected

Gets resolution of the source command set.

◆ set_State()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_State ( GlyphState  value)
protected

Gets glyph state.

◆ set_WidthVectorX()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_WidthVectorX ( double  value)
protected

Gets glyph width vector. Coordinate x.

◆ set_WidthVectorY()

ASPOSE_FONT_SHARED_API void Aspose::Font::Glyphs::Glyph::set_WidthVectorY ( double  value)
protected

Gets glyph width vector. Coordinate y.

Member Data Documentation

◆ _pathDefinition

System::SharedPtr<Aspose::Font::RenderingPath::PathDefinition> Aspose::Font::Glyphs::Glyph::_pathDefinition
protected

◆ path

System::SharedPtr<Aspose::Font::RenderingPath::SegmentPath> Aspose::Font::Glyphs::Glyph::path
protected