LibreOffice Module vcl (master) 1
Public Member Functions | Public Attributes | List of all members
vcl::TrueTypeTableHhea Class Reference

Creates a new 'hhea' table for a TrueType font. More...

#include <ttcr.hxx>

Inheritance diagram for vcl::TrueTypeTableHhea:
[legend]
Collaboration diagram for vcl::TrueTypeTableHhea:
[legend]

Public Member Functions

 TrueTypeTableHhea (sal_Int16 ascender, sal_Int16 descender, sal_Int16 linegap, sal_Int16 caretSlopeRise, sal_Int16 caretSlopeRun)
 
virtual ~TrueTypeTableHhea () override
 
virtual int GetRawData (TableEntry *) override
 This function converts the data of a TrueType table to a raw array of bytes. More...
 
- Public Member Functions inherited from vcl::TrueTypeTable
virtual ~TrueTypeTable ()
 
virtual int GetRawData (TableEntry *)=0
 This function converts the data of a TrueType table to a raw array of bytes. More...
 

Public Attributes

std::unique_ptr< sal_uInt8[]> m_hhea
 
- Public Attributes inherited from vcl::TrueTypeTable
sal_uInt32 m_tag = 0
 
std::unique_ptr< sal_uInt8[]> m_rawdata
 

Additional Inherited Members

- Protected Member Functions inherited from vcl::TrueTypeTable
 TrueTypeTable (sal_uInt32 tag_)
 

Detailed Description

Creates a new 'hhea' table for a TrueType font.

Allocates memory for it and stores it in the hhea pointer.

Definition at line 162 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableHhea()

vcl::TrueTypeTableHhea::TrueTypeTableHhea ( sal_Int16  ascender,
sal_Int16  descender,
sal_Int16  linegap,
sal_Int16  caretSlopeRise,
sal_Int16  caretSlopeRun 
)

Definition at line 674 of file ttcr.cxx.

References m_hhea, vcl::PutUInt16(), and vcl::PutUInt32().

◆ ~TrueTypeTableHhea()

vcl::TrueTypeTableHhea::~TrueTypeTableHhea ( )
overridevirtual

Definition at line 286 of file ttcr.cxx.

Member Function Documentation

◆ GetRawData()

int vcl::TrueTypeTableHhea::GetRawData ( TableEntry )
overridevirtual

This function converts the data of a TrueType table to a raw array of bytes.

It may allocates the memory for it and returns the size of the raw data in bytes. If memory is allocated it does not need to be freed by the caller of this function, since the pointer to it is stored in the TrueTypeTable and it is freed by the destructor

Returns
TTCRErrCode

Implements vcl::TrueTypeTable.

Definition at line 343 of file ttcr.cxx.

References vcl::TableEntry::data, vcl::HHEA_Length, vcl::TableEntry::length, m_hhea, vcl::T_hhea, vcl::TableEntry::tag, and vcl::TTCR_OK.

Member Data Documentation

◆ m_hhea

std::unique_ptr<sal_uInt8[]> vcl::TrueTypeTableHhea::m_hhea

Definition at line 173 of file ttcr.hxx.

Referenced by GetRawData(), vcl::TrueTypeCreator::ProcessTables(), and TrueTypeTableHhea().


The documentation for this class was generated from the following files: