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

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

Public Member Functions

ASPOSE_FONT_SHARED_API float get_Version () const
 Fixed version 0x00010000 if (version 1.0). More...
 
ASPOSE_FONT_SHARED_API uint16_t get_Flags () const
 Gets uint16 flags. More...
 
ASPOSE_FONT_SHARED_API float get_FontRevision () const
 Gets fixed fontRevision set by font manufacturer. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_CheckSumAdjustment () const
 Gets uint32 checkSumAdjustment. To compute: set it to 0, calculate the checksum for the 'head' table and put it in the table directory, sum the entire font as uint32, then store B1B0AFBA - sum. The checksum for the 'head' table will not be wrong. That is OK. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_MagicNumber () const
 Gets uint32 magicNumber set to 0x5F0F3CF5. More...
 
ASPOSE_FONT_SHARED_API uint32_t get_UnitsPerEM () const
 Gets uint16 unitsPerEm range from 64 to 16384. More...
 
ASPOSE_FONT_SHARED_API System::DateTime get_Created () const
 Gets longDateTime created international date. More...
 
ASPOSE_FONT_SHARED_API System::DateTime get_Modified () const
 Gets longDateTime modified international date. More...
 
ASPOSE_FONT_SHARED_API int16_t get_XMin () const
 Gets FWord xMin for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API int16_t get_YMin () const
 Gets FWord yMin for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API int16_t get_XMax () const
 Gets FWord xMax for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API int16_t get_YMax () const
 Gets FWord yMax for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API uint16_t get_MacStyle () const
 Gets uint16 macStyle. More...
 
ASPOSE_FONT_SHARED_API uint16_t get_LowestRecPPEM () const
 Gets uint16 lowestRecPPEM smallest readable size in pixels. More...
 
ASPOSE_FONT_SHARED_API int16_t get_FontDirectionHint () const
 Gets int16 fontDirectionHint. 0 Mixed directional glyphs; 1 Only strongly left to right glyphs; 2 Like 1 but also contains neutrals; -1 Only strongly right to left glyphs; -2 Like -1 but also contains neutrals. More...
 
ASPOSE_FONT_SHARED_API int16_t get_IndexToLocFormat () const
 Gets int16 indexToLocFormat 0 for short offsets, 1 for long. More...
 
ASPOSE_FONT_SHARED_API int16_t get_GlyphDataFormat () const
 Gets int16 glyphDataFormat 0 for current format. 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 Types

enum  FontFlagsEnum : uint16_t {
  FontFlagsEnum::Bit0 = 0x1, FontFlagsEnum::Bit1 = 0x2, FontFlagsEnum::Bit2 = 0x4, FontFlagsEnum::Bit3 = 0x8,
  FontFlagsEnum::Bit4 = 0x10, FontFlagsEnum::Bit5 = 0x20, FontFlagsEnum::Bit6 = 0x40, FontFlagsEnum::Bit7 = 0x80,
  FontFlagsEnum::Bit8 = 0x100, FontFlagsEnum::Bit9 = 0x200, FontFlagsEnum::Bit10 = 0x400, FontFlagsEnum::Bit11 = 0x800,
  FontFlagsEnum::Bit12 = 0x1000, FontFlagsEnum::Bit13 = 0x2000, FontFlagsEnum::Bit14 = 0x4000, FontFlagsEnum::Bit15 = 0x8000
}
 Font flags enumeration. More...
 
enum  MacStyleEnum : uint16_t
 Mac style enumeration. More...
 

Protected Member Functions

 DECLARE_FRIEND_ENUM_OPERATORS (Aspose::Font::TtfTables::TtfHeadTable::FontFlagsEnum)
 
 DECLARE_FRIEND_ENUM_OPERATORS (Aspose::Font::TtfTables::TtfHeadTable::MacStyleEnum)
 
ASPOSE_FONT_SHARED_API void set_Flags (uint16_t value)
 Gets uint16 flags. More...
 
ASPOSE_FONT_SHARED_API void set_FontRevision (float value)
 Gets fixed fontRevision set by font manufacturer. More...
 
ASPOSE_FONT_SHARED_API void set_UnitsPerEM (uint32_t value)
 Gets uint16 unitsPerEm range from 64 to 16384. More...
 
ASPOSE_FONT_SHARED_API void set_XMin (int16_t value)
 Gets FWord xMin for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API void set_YMin (int16_t value)
 Gets FWord yMin for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API void set_XMax (int16_t value)
 Gets FWord xMax for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API void set_YMax (int16_t value)
 Gets FWord yMax for all glyph bounding boxes. More...
 
ASPOSE_FONT_SHARED_API void set_MacStyle (uint16_t value)
 Gets uint16 macStyle. More...
 
ASPOSE_FONT_SHARED_API void set_FontDirectionHint (int16_t value)
 Gets int16 fontDirectionHint. 0 Mixed directional glyphs; 1 Only strongly left to right glyphs; 2 Like 1 but also contains neutrals; -1 Only strongly right to left glyphs; -2 Like -1 but also contains neutrals. More...
 
ASPOSE_FONT_SHARED_API void set_IndexToLocFormat (int16_t value)
 Gets int16 indexToLocFormat 0 for short offsets, 1 for long. More...
 
 TtfHeadTable (System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfHeadTable, CODEPORTING_ARGS(System::SharedPtr< TtfTableRepository > ttfTables, System::SharedPtr< Aspose::Font::Ttf::TtfFont > font))
 
 TtfHeadTable (System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfHeadTable, CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Ttf::Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length))
 
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 Save (System::ArrayPtr< uint8_t > &tableBytes, uint32_t &length, uint32_t &checksum) override
 Saves the table to font stream More...
 
- 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 void LazyLoadImpl (System::SharedPtr< Aspose::Font::Ttf::Internals::Parsing::TTFFileReader > ttfReader)
 
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)
 
virtual ASPOSE_FONT_SHARED_API void AssignDataFrom (System::SharedPtr< TtfTableBase > table)
 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...
 

Protected Attributes

int64_t CheckSumPosition
 position of the checksum adjustment inside the table More...
 
- Protected Attributes inherited from Aspose::Font::TtfTables::TtfTableBase
bool IsLoaded
 Used to detect whether table already loaded More...
 

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)
 

Detailed Description

Represents "head" table of the TTF Font file.

Member Enumeration Documentation

◆ FontFlagsEnum

Font flags enumeration.

Enumerator
Bit0 

Bit 0: Baseline for font at y=0.

Bit1 

Bit 1: Left sidebearing point at x=0 (relevant only for TrueType rasterizers) — see the note below regarding variable fonts.

Bit2 

Bit 2: Instructions may depend on point size.

Bit3 

Bit 3: Force ppem to integer values for all internal scaler math; may use fractional ppem sizes if this bit is clear. It is strongly recommended that this be set in hinted fonts.

Bit4 

Bit 4: Instructions may alter advance width (the advance widths might not scale linearly).

Bit5 

Bit 5: This bit is not used in OpenType, and should not be set in order to ensure compatible behavior on all platforms. If set, it may result in different behavior for vertical layout in some platforms. (See Apple’s specification for details regarding behavior in Apple platforms.)

Bit6 

Bits 6–10: These bits are not used in Opentype and should always be cleared. (See Apple’s specification for details regarding legacy used in Apple platforms.)

Bit7 

Bits 6–10: These bits are not used in Opentype and should always be cleared. (See Apple’s specification for details regarding legacy used in Apple platforms.)

Bit8 

Bits 6–10: These bits are not used in Opentype and should always be cleared. (See Apple’s specification for details regarding legacy used in Apple platforms.)

Bit9 

Bits 6–10: These bits are not used in Opentype and should always be cleared. (See Apple’s specification for details regarding legacy used in Apple platforms.)

Bit10 

Bits 6–10: These bits are not used in Opentype and should always be cleared. (See Apple’s specification for details regarding legacy used in Apple platforms.)

Bit11 

Bit 11: Font data is “lossless” as a result of having been subjected to optimizing transformation and/or compression (such as e.g. compression mechanisms defined by ISO/IEC 14496-18, MicroType Express, WOFF 2.0 or similar) where the original font functionality and features are retained but the binary compatibility between input and output font files is not guaranteed. As a result of the applied transform, the DSIG table may also be invalidated.

Bit12 

Bit 12: Font converted (produce compatible metrics).

Bit13 

Bit 13: Font optimized for ClearType™. Note, fonts that rely on embedded bitmaps (EBDT) for rendering should not be considered optimized for ClearType, and therefore should keep this bit cleared.

Bit14 

Bit 14: Last Resort font. If set, indicates that the glyphs encoded in the 'cmap' subtables are simply generic symbolic representations of code point ranges and don’t truly represent support for those code points. If unset, indicates that the glyphs encoded in the 'cmap' subtables represent proper support for those code points.

Bit15 

Reserved, set to 0.

◆ MacStyleEnum

enum Aspose::Font::TtfTables::TtfHeadTable::MacStyleEnum : uint16_t
strongprotected

Mac style enumeration.

Constructor & Destructor Documentation

◆ TtfHeadTable() [1/2]

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

◆ TtfHeadTable() [2/2]

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

Member Function Documentation

◆ DECLARE_FRIEND_ENUM_OPERATORS() [1/2]

Aspose::Font::TtfTables::TtfHeadTable::DECLARE_FRIEND_ENUM_OPERATORS ( Aspose::Font::TtfTables::TtfHeadTable::FontFlagsEnum  )
protected

◆ DECLARE_FRIEND_ENUM_OPERATORS() [2/2]

Aspose::Font::TtfTables::TtfHeadTable::DECLARE_FRIEND_ENUM_OPERATORS ( Aspose::Font::TtfTables::TtfHeadTable::MacStyleEnum  )
protected

◆ get_CheckSumAdjustment()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfHeadTable::get_CheckSumAdjustment ( ) const

Gets uint32 checkSumAdjustment. To compute: set it to 0, calculate the checksum for the 'head' table and put it in the table directory, sum the entire font as uint32, then store B1B0AFBA - sum. The checksum for the 'head' table will not be wrong. That is OK.

◆ get_Created()

ASPOSE_FONT_SHARED_API System::DateTime Aspose::Font::TtfTables::TtfHeadTable::get_Created ( ) const

Gets longDateTime created international date.

◆ get_Flags()

ASPOSE_FONT_SHARED_API uint16_t Aspose::Font::TtfTables::TtfHeadTable::get_Flags ( ) const

Gets uint16 flags.

◆ get_FontDirectionHint()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_FontDirectionHint ( ) const

Gets int16 fontDirectionHint. 0 Mixed directional glyphs; 1 Only strongly left to right glyphs; 2 Like 1 but also contains neutrals; -1 Only strongly right to left glyphs; -2 Like -1 but also contains neutrals.

◆ get_FontRevision()

ASPOSE_FONT_SHARED_API float Aspose::Font::TtfTables::TtfHeadTable::get_FontRevision ( ) const

Gets fixed fontRevision set by font manufacturer.

◆ get_GlyphDataFormat()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_GlyphDataFormat ( ) const

Gets int16 glyphDataFormat 0 for current format.

◆ get_IndexToLocFormat()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_IndexToLocFormat ( ) const

Gets int16 indexToLocFormat 0 for short offsets, 1 for long.

◆ get_LowestRecPPEM()

ASPOSE_FONT_SHARED_API uint16_t Aspose::Font::TtfTables::TtfHeadTable::get_LowestRecPPEM ( ) const

Gets uint16 lowestRecPPEM smallest readable size in pixels.

◆ get_MacStyle()

ASPOSE_FONT_SHARED_API uint16_t Aspose::Font::TtfTables::TtfHeadTable::get_MacStyle ( ) const

Gets uint16 macStyle.

◆ get_MagicNumber()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfHeadTable::get_MagicNumber ( ) const

Gets uint32 magicNumber set to 0x5F0F3CF5.

◆ get_Modified()

ASPOSE_FONT_SHARED_API System::DateTime Aspose::Font::TtfTables::TtfHeadTable::get_Modified ( ) const

Gets longDateTime modified international date.

◆ get_Tag()

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

Gets table tag.

◆ get_UnitsPerEM()

ASPOSE_FONT_SHARED_API uint32_t Aspose::Font::TtfTables::TtfHeadTable::get_UnitsPerEM ( ) const

Gets uint16 unitsPerEm range from 64 to 16384.

◆ get_Version()

ASPOSE_FONT_SHARED_API float Aspose::Font::TtfTables::TtfHeadTable::get_Version ( ) const

Fixed version 0x00010000 if (version 1.0).

◆ get_XMax()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_XMax ( ) const

Gets FWord xMax for all glyph bounding boxes.

◆ get_XMin()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_XMin ( ) const

Gets FWord xMin for all glyph bounding boxes.

◆ get_YMax()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_YMax ( ) const

Gets FWord yMax for all glyph bounding boxes.

◆ get_YMin()

ASPOSE_FONT_SHARED_API int16_t Aspose::Font::TtfTables::TtfHeadTable::get_YMin ( ) const

Gets FWord yMin for all glyph bounding boxes.

◆ Load()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::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/2]

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

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/2]

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

◆ Save()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::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_Flags()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_Flags ( uint16_t  value)
protected

Gets uint16 flags.

◆ set_FontDirectionHint()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_FontDirectionHint ( int16_t  value)
protected

Gets int16 fontDirectionHint. 0 Mixed directional glyphs; 1 Only strongly left to right glyphs; 2 Like 1 but also contains neutrals; -1 Only strongly right to left glyphs; -2 Like -1 but also contains neutrals.

◆ set_FontRevision()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_FontRevision ( float  value)
protected

Gets fixed fontRevision set by font manufacturer.

◆ set_IndexToLocFormat()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_IndexToLocFormat ( int16_t  value)
protected

Gets int16 indexToLocFormat 0 for short offsets, 1 for long.

◆ set_MacStyle()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_MacStyle ( uint16_t  value)
protected

Gets uint16 macStyle.

◆ set_UnitsPerEM()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_UnitsPerEM ( uint32_t  value)
protected

Gets uint16 unitsPerEm range from 64 to 16384.

◆ set_XMax()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_XMax ( int16_t  value)
protected

Gets FWord xMax for all glyph bounding boxes.

◆ set_XMin()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_XMin ( int16_t  value)
protected

Gets FWord xMin for all glyph bounding boxes.

◆ set_YMax()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_YMax ( int16_t  value)
protected

Gets FWord yMax for all glyph bounding boxes.

◆ set_YMin()

ASPOSE_FONT_SHARED_API void Aspose::Font::TtfTables::TtfHeadTable::set_YMin ( int16_t  value)
protected

Gets FWord yMin for all glyph bounding boxes.

Member Data Documentation

◆ CheckSumPosition

int64_t Aspose::Font::TtfTables::TtfHeadTable::CheckSumPosition
protected

position of the checksum adjustment inside the table

◆ LowerTag

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

◆ TAG

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

Table Tag.