Represents "post" table of the TTF Font file. More...

Inherits Aspose::Font::TtfTables::TtfTableBase.

Public Member Functions

ASPOSE_FONT_SHARED_API float get_Format ()
 Gets fixed format(version) of this table. Deprecated, use TableFormat property More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::TtfCommon::Version16Dot16get_TableFormat ()
 Gets fixed format(version) of this table. Use properties MajorNumber and MinorNUmber of object Version16Dot16 in hexademical notation to detect version used. More...
 
ASPOSE_FONT_SHARED_API float get_ItalicAngle ()
 Gets fixed italicAngle Italic angle in degrees. More...
 
ASPOSE_FONT_SHARED_API int16_t get_UnderlinePosition ()
 Gets FWord underlinePosition value. More...
 
ASPOSE_FONT_SHARED_API int16_t get_UnderlineThickness ()
 Gets FWord underlineThickness value. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_IsFixedPitch ()
 Gets uint32 isFixedPitch. 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced). More...
 
ASPOSE_FONT_SHARED_API uint32_t get_MinMemType42 ()
 Gets uint32 minMemType42 Minimum memory usage when a TrueType font is downloaded as a Type 42 Font. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_MaxMemType42 ()
 Gets uint32 maxMemType42 Maximum memory usage when a TrueType font is downloaded as a Type 42 Font. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_MinMemType1 ()
 Gets uint32 minMemType1 Minimum memory usage when a TrueType font is downloaded as a Type 1 Font. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_MaxMemType1 ()
 Gets uint32 maxMemType1 Maximum memory usage when a TrueType font is downloaded as a Type 1 Font. More...
 
ASPOSE_FONT_SHARED_API bool get_HasNoPostScriptNames ()
 Indicates that no PostScript name information is provided for the glyphs in this font file. More...
 
ASPOSE_FONT_SHARED_API System::String GetGlyphName (uint32_t glyphIndex)
 Gets glyph name by glyph index. More...
 
ASPOSE_FONT_SHARED_API uint32_t GetGlyphIndex (System::String glyphName)
 Gets glyph index by glyph name. More...
 
ASPOSE_FONT_SHARED_API System::ArrayPtr< uint32_t > GetAllGlyphIndexesForGlyphName (System::String glyphName)
 Gets array of glyphs indexes by glyph name More...
 
- Public Member Functions inherited from Aspose::Font::TtfTables::TtfTableBase
ASPOSE_FONT_SHARED_API System::SharedPtr< TtfTableRepositoryget_TtfTables () const
 Reference to TTF table repository. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_Offset () const
 Gets offset from beginning of sfnt. 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...
 

Static Public Member Functions

static ASPOSE_FONT_SHARED_API System::String get_Tag ()
 Gets table tag. 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...
 

Protected Member Functions

ASPOSE_FONT_SHARED_API void set_ItalicAngle (float value)
 Gets fixed italicAngle Italic angle in degrees. More...
 
ASPOSE_FONT_SHARED_API void set_UnderlinePosition (int16_t value)
 Gets FWord underlinePosition value. More...
 
ASPOSE_FONT_SHARED_API void set_UnderlineThickness (int16_t value)
 Gets FWord underlineThickness value. More...
 
ASPOSE_FONT_SHARED_API void set_IsFixedPitch (uint32_t value)
 Gets uint32 isFixedPitch. 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced). More...
 
 TtfPostTable (System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfPostTable, CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font))
 
 TtfPostTable (System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfPostTable, CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length))
 
 TtfPostTable (System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, uint32_t >> glyphToIndex)
 Initializes a new instance of the TtfPostTable class. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfPostTable, CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, uint32_t >> glyphToIndex))
 
ASPOSE_FONT_SHARED_API void Load (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader > ttfReader) override
 Loads current table More...
 
ASPOSE_FONT_SHARED_API void LazyLoadImpl (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader > ttfReader) override
 
ASPOSE_FONT_SHARED_API void Save (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum) override
 Saves the table to font stream More...
 
ASPOSE_FONT_SHARED_API void AssignDataFrom (System::SharedPtr< TtfTableBase > table) override
 Designed to copy data from another table with same type, for example hhea->hhea, hmtx->hmtx. This mechanism can be helpful when table of generated font needed to copy data from another existing font(not generated) to avoid problems with linking to data source(source table from existing font has link to data source(offset, length), but this link data is superfluous for destination table, so full copy (method like Copy()) is not decision for this case. Let the table takes necessary data via this assigning mechanism. More...
 
void AssignNames (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, uint32_t >> glyphToIndex)
 
- Protected Member Functions inherited from Aspose::Font::TtfTables::TtfTableBase
System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > get_Context () const
 parser context More...
 
bool get_IsNewFont () const
 indicates that the font is new More...
 
void set_IsNewFont (bool value)
 indicates that the font is new More...
 
bool get_IsModified () const
 Indicates data state in current table, if this flag is true - table data was changd and needed to be saved. More...
 
void set_IsModified (bool value)
 Indicates data state in current table, if this flag is true - table data was changd and needed to be saved. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_Length () const
 Gets length of this table in bytes (actual length not padded length). More...
 
 TtfTableBase (System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfTableBase, CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font))
 
 TtfTableBase (System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfTableBase, CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length))
 
void LazyLoad ()
 
virtual ASPOSE_FONT_SHARED_API bool IsConsistent ()
 
void LoadInitialBytes (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum)
 Read the initial data (all bytes) of the table and save it to array of bytes
Parameters
tableBytesArray of bytes of initial data
lengthOriginal value of length of the table
checksumOriginal value of checksum
More...
 
virtual ASPOSE_FONT_SHARED_API void SaveInitialBytes (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum)
 Saves the initial bytes of the table More...
 
void FinalizeWriting (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileWriter > writer, System::SharedPtr< System::IO::MemoryStream > stream, System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum)
 

Static Protected Attributes

static const System::String TAG
 Table Tag. More...
 
static const System::String LowerTag
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Protected Member Functions inherited from Aspose::Font::TtfTables::TtfTableBase
static uint32_t CalculateChecksum (System::ArrayPtr< uint8_t > data)
 
- Protected Attributes inherited from Aspose::Font::TtfTables::TtfTableBase
bool IsLoaded
 Used to detect whether table already loaded More...
 

Detailed Description

Represents "post" table of the TTF Font file.

Constructor & Destructor Documentation

◆ TtfPostTable() [1/3]

Aspose::Font::TtfTables::TtfPostTable::TtfPostTable ( System::SharedPtr< TtfTableRepository ttfTables,
System::SharedPtr< Aspose::Font::Ttf::TtfFont font 
)
protected

◆ TtfPostTable() [2/3]

Aspose::Font::TtfTables::TtfPostTable::TtfPostTable ( System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext >  context,
uint32_t  checkSum,
uint32_t  offset,
uint32_t  length 
)
protected

◆ TtfPostTable() [3/3]

Aspose::Font::TtfTables::TtfPostTable::TtfPostTable ( System::SharedPtr< TtfTableRepository ttfTables,
System::SharedPtr< Aspose::Font::Ttf::TtfFont font,
System::SharedPtr< System::Collections::Generic::Dictionary< System::String, uint32_t >>  glyphToIndex 
)
protected

Initializes a new instance of the TtfPostTable class.

Parameters
ttfTablesTTF tables repository.
fontTTF font.
glyphToIndexThe dictionary that contains correspondence between the name of glyph and index in loca table.

Member Function Documentation

◆ AssignDataFrom()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::AssignDataFrom ( System::SharedPtr< TtfTableBase table)
overrideprotectedvirtual

Designed to copy data from another table with same type, for example hhea->hhea, hmtx->hmtx. This mechanism can be helpful when table of generated font needed to copy data from another existing font(not generated) to avoid problems with linking to data source(source table from existing font has link to data source(offset, length), but this link data is superfluous for destination table, so full copy (method like Copy()) is not decision for this case. Let the table takes necessary data via this assigning mechanism.

Parameters
tabletable to get data from

Reimplemented from Aspose::Font::TtfTables::TtfTableBase.

◆ AssignNames()

void Aspose::Font::TtfTables::TtfPostTable::AssignNames ( System::SharedPtr< System::Collections::Generic::Dictionary< System::String, uint32_t >>  glyphToIndex)
protected

◆ get_Format()

ASPOSE_FONT_SHARED_API float Aspose::Font::TtfTables::TtfPostTable::get_Format ( )

Gets fixed format(version) of this table. Deprecated, use TableFormat property

◆ get_HasNoPostScriptNames()

ASPOSE_FONT_SHARED_API bool Aspose::Font::TtfTables::TtfPostTable::get_HasNoPostScriptNames ( )

Indicates that no PostScript name information is provided for the glyphs in this font file.

◆ get_IsFixedPitch()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfPostTable::get_IsFixedPitch ( )

Gets uint32 isFixedPitch. 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced).

◆ get_ItalicAngle()

ASPOSE_FONT_SHARED_API float Aspose::Font::TtfTables::TtfPostTable::get_ItalicAngle ( )

Gets fixed italicAngle Italic angle in degrees.

◆ get_MaxMemType1()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfPostTable::get_MaxMemType1 ( )

Gets uint32 maxMemType1 Maximum memory usage when a TrueType font is downloaded as a Type 1 Font.

◆ get_MaxMemType42()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfPostTable::get_MaxMemType42 ( )

Gets uint32 maxMemType42 Maximum memory usage when a TrueType font is downloaded as a Type 42 Font.

◆ get_MinMemType1()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfPostTable::get_MinMemType1 ( )

Gets uint32 minMemType1 Minimum memory usage when a TrueType font is downloaded as a Type 1 Font.

◆ get_MinMemType42()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfPostTable::get_MinMemType42 ( )

Gets uint32 minMemType42 Minimum memory usage when a TrueType font is downloaded as a Type 42 Font.

◆ get_TableFormat()

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::TtfCommon::Version16Dot16> Aspose::Font::TtfTables::TtfPostTable::get_TableFormat ( )

Gets fixed format(version) of this table. Use properties MajorNumber and MinorNUmber of object Version16Dot16 in hexademical notation to detect version used.

◆ get_Tag()

static ASPOSE_FONT_SHARED_API System::String Aspose::Font::TtfTables::TtfPostTable::get_Tag ( )
static

Gets table tag.

◆ get_UnderlinePosition()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfPostTable::get_UnderlinePosition ( )

Gets FWord underlinePosition value.

◆ get_UnderlineThickness()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfPostTable::get_UnderlineThickness ( )

Gets FWord underlineThickness value.

◆ GetAllGlyphIndexesForGlyphName()

ASPOSE_FONT_SHARED_API System::ArrayPtr<uint32_t> Aspose::Font::TtfTables::TtfPostTable::GetAllGlyphIndexesForGlyphName ( System::String  glyphName)

Gets array of glyphs indexes by glyph name

Parameters
glyphNameGlyph name
Returns
array of glyphs indexes

◆ GetGlyphIndex()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfPostTable::GetGlyphIndex ( System::String  glyphName)

Gets glyph index by glyph name.

Parameters
glyphNameGlyph name.
Returns
Glyph index.

◆ GetGlyphName()

ASPOSE_FONT_SHARED_API System::String Aspose::Font::TtfTables::TtfPostTable::GetGlyphName ( uint32_t  glyphIndex)

Gets glyph name by glyph index.

Parameters
glyphIndexGlyph index.
Returns
Glyph name.

◆ LazyLoadImpl()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::LazyLoadImpl ( System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader >  ttfReader)
overrideprotectedvirtual

◆ Load()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::Load ( System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader >  ttfReader)
overrideprotectedvirtual

Loads current table

Reimplemented from Aspose::Font::TtfTables::TtfTableBase.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/3]

Aspose::Font::TtfTables::TtfPostTable::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfPostTable  ,
CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/3]

Aspose::Font::TtfTables::TtfPostTable::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfPostTable  ,
CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/3]

Aspose::Font::TtfTables::TtfPostTable::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfPostTable  ,
CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, uint32_t >> glyphToIndex)   
)
protected

◆ Save()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::Save ( System::ArrayPtr< uint8_t > &  tableBytes,
uint32_t &  length,
uint32_t &  checksum 
)
overrideprotectedvirtual

Saves the table to font stream

base mathod implementation simply retrieves initial table data

Reimplemented from Aspose::Font::TtfTables::TtfTableBase.

◆ set_IsFixedPitch()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::set_IsFixedPitch ( uint32_t  value)
protected

Gets uint32 isFixedPitch. 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced).

◆ set_ItalicAngle()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::set_ItalicAngle ( float  value)
protected

Gets fixed italicAngle Italic angle in degrees.

◆ set_UnderlinePosition()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::set_UnderlinePosition ( int16_t  value)
protected

Gets FWord underlinePosition value.

◆ set_UnderlineThickness()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfPostTable::set_UnderlineThickness ( int16_t  value)
protected

Gets FWord underlineThickness value.

Member Data Documentation

◆ LowerTag

const System::String Aspose::Font::TtfTables::TtfPostTable::LowerTag
staticprotected

◆ TAG

const System::String Aspose::Font::TtfTables::TtfPostTable::TAG
staticprotected

Table Tag.