LibreOffice Module vcl (master) 1
|
Creates a new 'hhea' table for a TrueType font. More...
#include <ttcr.hxx>
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_) | |
Creates a new 'hhea' table for a TrueType font.
Allocates memory for it and stores it in the hhea pointer.
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().
|
overridevirtual |
|
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
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.
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().