LibreOffice Module vcl (master) 1
|
Creates a new 'maxp' table based on an existing maxp table. More...
#include <ttcr.hxx>
Public Member Functions | |
TrueTypeTableMaxp (const sal_uInt8 *maxp, int size) | |
virtual | ~TrueTypeTableMaxp () 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_maxp |
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 'maxp' table based on an existing maxp table.
If maxp is 0, a new empty maxp table is created size specifies the size of existing maxp table for error-checking purposes
Definition at line 706 of file ttcr.cxx.
References m_maxp, vcl::MAXP_Version1Length, size, and vcl::ttmalloc().
|
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 365 of file ttcr.cxx.
References vcl::TableEntry::data, vcl::TableEntry::length, m_maxp, vcl::MAXP_Version1Length, vcl::T_maxp, vcl::TableEntry::tag, and vcl::TTCR_OK.
std::unique_ptr<sal_uInt8[]> vcl::TrueTypeTableMaxp::m_maxp |
Definition at line 204 of file ttcr.hxx.
Referenced by GetRawData(), vcl::TrueTypeCreator::ProcessTables(), and TrueTypeTableMaxp().