Aspose::Font::Type1::Type1FontMetrics Class Reference

Represents Type1 Font metrics. More...

Inherits Aspose::Font::FontMetrics.

Public Member Functions

ASPOSE_FONT_SHARED_API System::String get_Weight () const
 Gets weight. More...
 
ASPOSE_FONT_SHARED_API double get_ItalicAngle () const
 Gets italic angle value. More...
 
ASPOSE_FONT_SHARED_API double get_UnderlinePosition () const
 Gets underline position value. More...
 
ASPOSE_FONT_SHARED_API double get_UnderlineThickness () const
 Gets underline thickness value. More...
 
ASPOSE_FONT_SHARED_API double get_CapHeight () const
 Gets cap height value. More...
 
ASPOSE_FONT_SHARED_API double get_XHeight () const
 Gets XHeight value. More...
 
ASPOSE_FONT_SHARED_API double get_Ascender () override
 Gets ascender value. More...
 
ASPOSE_FONT_SHARED_API double get_Descender () override
 Gets descender value. More...
 
ASPOSE_FONT_SHARED_API double get_StdHW () const
 Gets StdHW value. More...
 
ASPOSE_FONT_SHARED_API double get_StdVW () const
 Gets StdVW value. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontBBoxget_FontBBox () override
 Gets FontBBox value. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< TransformationMatrixget_FontMatrix () override
 Gets Font transformation matrix. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_UnitsPerEM () override
 Gets underline UnitsPerEM value. More...
 
ASPOSE_FONT_SHARED_API void set_UnitsPerEM (uint32_t value) override
 Gets underline UnitsPerEM value. More...
 
ASPOSE_FONT_SHARED_API double GetGlyphWidth (System::SharedPtr< Aspose::Font::Glyphs::GlyphId > glyphId) override
 Returns glyph width. May be ovridden by specific font encoding inheritors. More...
 
ASPOSE_FONT_SHARED_API double MeasureString (System::String unicode, double fontSize) override
 Measures string and returns string width. More...
 
- Public Member Functions inherited from Aspose::Font::FontMetrics
ASPOSE_FONT_SHARED_API void set_Ascender (double value) override
 Gets Ascender value. More...
 
ASPOSE_FONT_SHARED_API void set_Descender (double value) override
 Gets Descender value. More...
 
ASPOSE_FONT_SHARED_API double get_TypoDescender () override
 Gets TypoDescender value. More...
 
ASPOSE_FONT_SHARED_API void set_TypoDescender (double value) override
 Gets TypoDescender value. More...
 
ASPOSE_FONT_SHARED_API double get_TypoAscender () override
 Gets TypoAscender value. More...
 
ASPOSE_FONT_SHARED_API void set_TypoAscender (double value) override
 Gets TypoAscender value. More...
 
ASPOSE_FONT_SHARED_API double get_LineGap () override
 Gets LineGap value. More...
 
ASPOSE_FONT_SHARED_API double get_TypoLineGap () override
 Gets TypoLineGap value. More...
 
ASPOSE_FONT_SHARED_API bool get_IsFixedPitch () override
 Gets IsFixedPitch value. More...
 
ASPOSE_FONT_SHARED_API double GetKerningValue (System::SharedPtr< Glyphs::GlyphId > prevGlyphId, System::SharedPtr< Glyphs::GlyphId > nextGlyphId) override
 Returns kerning value for the glyph pair. More...
 
ASPOSE_FONT_SHARED_API double GetAscender (double fontSize) override
 Returns ascender for specific Font size. More...
 
ASPOSE_FONT_SHARED_API double GetDescender (double fontSize) override
 Returns descender for specific Font size. More...
 
ASPOSE_FONT_SHARED_API double GetTypoDescender (double fontSize) override
 Returns descender for specific Font size. More...
 
ASPOSE_FONT_SHARED_API double GetTypoAscender (double fontSize) override
 Returns descender for specific Font size. More...
 
ASPOSE_FONT_SHARED_API double GetTypoLineGap (double fontSize) override
 Returns line gap for specific Font size. More...
 
ASPOSE_FONT_SHARED_API double GetGlyphWidth (System::SharedPtr< Glyphs::GlyphId > glyphId) override
 Returns glyph width. May be overridden by specific font encoding inheritors. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontBBoxGetGlyphBBox (System::SharedPtr< Glyphs::GlyphId > glyphId) override
 Returns glyph BBox. Returns FontBBox if BBox was not defined for the glyph. May be overridden by specific font encoding inheritors. 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

System::String get_FontName () const
 Gets Font name. More...
 
void set_FontName (System::String value)
 Sets Font name. More...
 
System::String get_FamilyName () const
 Gets family name. More...
 
void set_FamilyName (System::String value)
 Sets family name. More...
 
ASPOSE_FONT_SHARED_API void set_Weight (System::String value)
 Gets weight. More...
 
ASPOSE_FONT_SHARED_API void set_ItalicAngle (double value)
 Gets italic angle value. More...
 
ASPOSE_FONT_SHARED_API void set_UnderlinePosition (double value)
 Gets underline position value. More...
 
ASPOSE_FONT_SHARED_API void set_UnderlineThickness (double value)
 Gets underline thickness value. More...
 
ASPOSE_FONT_SHARED_API void set_CapHeight (double value)
 Gets cap height value. More...
 
ASPOSE_FONT_SHARED_API void set_XHeight (double value)
 Gets XHeight value. More...
 
ASPOSE_FONT_SHARED_API void set_StdHW (double value)
 Gets StdHW value. More...
 
ASPOSE_FONT_SHARED_API void set_StdVW (double value)
 Gets StdVW value. More...
 
ASPOSE_FONT_SHARED_API void set_FontBBox (System::SharedPtr< Aspose::Font::FontBBox > value) override
 Gets FontBBox value. More...
 
ASPOSE_FONT_SHARED_API void set_FontMatrix (System::SharedPtr< TransformationMatrix > value) override
 Gets Font transformation matrix. More...
 
 Type1FontMetrics (System::SharedPtr< Type1Font > font)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Type1FontMetrics, CODEPORTING_ARGS(System::SharedPtr< Type1Font > font))
 
ASPOSE_FONT_SHARED_API int32_t GetGlyphIdHashCode (System::SharedPtr< Aspose::Font::Glyphs::GlyphId > glyphId) override
 Returns hashcode, based on glyph id type. More...
 
- Protected Member Functions inherited from Aspose::Font::FontMetrics
ASPOSE_FONT_SHARED_API void set_IsFixedPitch (bool value)
 Gets IsFixedPitch value. More...
 
 FontMetrics ()
 
virtual int32_t GetGlyphIdHashCode (System::SharedPtr< Glyphs::GlyphId > glyphId)=0
 returns hashcode, based on glyph id type More...
 
virtual ASPOSE_FONT_SHARED_API void AddGlyphMetrics (System::SharedPtr< Glyphs::GlyphId > glyphId, double width, System::SharedPtr< Aspose::Font::FontBBox > bbox)
 
virtual ASPOSE_FONT_SHARED_API void AddTrackKerning ()
 
virtual ASPOSE_FONT_SHARED_API void AddKerningPair (System::SharedPtr< Glyphs::GlyphId > previousGlyphId, System::SharedPtr< Glyphs::GlyphId > nextGlyphId, double kerningValue)
 

Protected Attributes

double ascender
 
double descender
 
- Protected Attributes inherited from Aspose::Font::FontMetrics
System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, System::SharedPtr< Type1::Internals::Metrics::GlyphMetrics > > > glyphMetricsMap
 
System::SharedPtr< Type1::Internals::Metrics::KerningDataMap > glyphKerningMap
 

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 Type1 Font metrics.

Constructor & Destructor Documentation

◆ Type1FontMetrics()

Aspose::Font::Type1::Type1FontMetrics::Type1FontMetrics ( System::SharedPtr< Type1Font font)
protected

Member Function Documentation

◆ get_Ascender()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_Ascender ( )
overridevirtual

Gets ascender value.

Reimplemented from Aspose::Font::FontMetrics.

◆ get_CapHeight()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_CapHeight ( ) const

Gets cap height value.

◆ get_Descender()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_Descender ( )
overridevirtual

Gets descender value.

Reimplemented from Aspose::Font::FontMetrics.

◆ get_FamilyName()

System::String Aspose::Font::Type1::Type1FontMetrics::get_FamilyName ( ) const
protected

Gets family name.

◆ get_FontBBox()

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::FontBBox> Aspose::Font::Type1::Type1FontMetrics::get_FontBBox ( )
overridevirtual

Gets FontBBox value.

Reimplemented from Aspose::Font::FontMetrics.

◆ get_FontMatrix()

ASPOSE_FONT_SHARED_API System::SharedPtr<TransformationMatrix> Aspose::Font::Type1::Type1FontMetrics::get_FontMatrix ( )
overridevirtual

Gets Font transformation matrix.

Reimplemented from Aspose::Font::FontMetrics.

◆ get_FontName()

System::String Aspose::Font::Type1::Type1FontMetrics::get_FontName ( ) const
protected

Gets Font name.

◆ get_ItalicAngle()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_ItalicAngle ( ) const

Gets italic angle value.

◆ get_StdHW()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_StdHW ( ) const

Gets StdHW value.

◆ get_StdVW()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_StdVW ( ) const

Gets StdVW value.

◆ get_UnderlinePosition()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_UnderlinePosition ( ) const

Gets underline position value.

◆ get_UnderlineThickness()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_UnderlineThickness ( ) const

Gets underline thickness value.

◆ get_UnitsPerEM()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::Type1::Type1FontMetrics::get_UnitsPerEM ( )
overridevirtual

Gets underline UnitsPerEM value.

Reimplemented from Aspose::Font::FontMetrics.

◆ get_Weight()

ASPOSE_FONT_SHARED_API System::String Aspose::Font::Type1::Type1FontMetrics::get_Weight ( ) const

Gets weight.

◆ get_XHeight()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::get_XHeight ( ) const

Gets XHeight value.

◆ GetGlyphIdHashCode()

ASPOSE_FONT_SHARED_API int32_t Aspose::Font::Type1::Type1FontMetrics::GetGlyphIdHashCode ( System::SharedPtr< Aspose::Font::Glyphs::GlyphId glyphId)
overrideprotected

Returns hashcode, based on glyph id type.

◆ GetGlyphWidth()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::GetGlyphWidth ( System::SharedPtr< Aspose::Font::Glyphs::GlyphId glyphId)
override

Returns glyph width. May be ovridden by specific font encoding inheritors.

Parameters
glyphIdGlyph identifier.
Returns
Glyph width.

◆ MeasureString()

ASPOSE_FONT_SHARED_API double Aspose::Font::Type1::Type1FontMetrics::MeasureString ( System::String  unicode,
double  fontSize 
)
overridevirtual

Measures string and returns string width.

Parameters
unicodeUnicode string.
fontSizeFont size.
Returns
String width.

Implements Aspose::Font::FontMetrics.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Font::Type1::Type1FontMetrics::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Type1FontMetrics  ,
CODEPORTING_ARGS(System::SharedPtr< Type1Font > font)   
)
protected

◆ set_CapHeight()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_CapHeight ( double  value)
protected

Gets cap height value.

◆ set_FamilyName()

void Aspose::Font::Type1::Type1FontMetrics::set_FamilyName ( System::String  value)
protected

Sets family name.

◆ set_FontBBox()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_FontBBox ( System::SharedPtr< Aspose::Font::FontBBox value)
overrideprotectedvirtual

Gets FontBBox value.

Reimplemented from Aspose::Font::FontMetrics.

◆ set_FontMatrix()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_FontMatrix ( System::SharedPtr< TransformationMatrix value)
overrideprotectedvirtual

Gets Font transformation matrix.

Reimplemented from Aspose::Font::FontMetrics.

◆ set_FontName()

void Aspose::Font::Type1::Type1FontMetrics::set_FontName ( System::String  value)
protected

Sets Font name.

◆ set_ItalicAngle()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_ItalicAngle ( double  value)
protected

Gets italic angle value.

◆ set_StdHW()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_StdHW ( double  value)
protected

Gets StdHW value.

◆ set_StdVW()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_StdVW ( double  value)
protected

Gets StdVW value.

◆ set_UnderlinePosition()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_UnderlinePosition ( double  value)
protected

Gets underline position value.

◆ set_UnderlineThickness()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_UnderlineThickness ( double  value)
protected

Gets underline thickness value.

◆ set_UnitsPerEM()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_UnitsPerEM ( uint32_t  value)
overridevirtual

Gets underline UnitsPerEM value.

Reimplemented from Aspose::Font::FontMetrics.

◆ set_Weight()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_Weight ( System::String  value)
protected

Gets weight.

◆ set_XHeight()

ASPOSE_FONT_SHARED_API void Aspose::Font::Type1::Type1FontMetrics::set_XHeight ( double  value)
protected

Gets XHeight value.

Member Data Documentation

◆ ascender

double Aspose::Font::Type1::Type1FontMetrics::ascender
protected

◆ descender

double Aspose::Font::Type1::Type1FontMetrics::descender
protected