LibreOffice Module vcl (master) 1
|
Creates a new 'name' table. More...
#include <ttcr.hxx>
Public Member Functions | |
TrueTypeTableName (std::vector< NameRecord > nr) | |
virtual | ~TrueTypeTableName () 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... | |
Private Attributes | |
std::vector< NameRecord > | m_list |
Additional Inherited Members | |
Public Attributes inherited from vcl::TrueTypeTable | |
sal_uInt32 | m_tag = 0 |
std::unique_ptr< sal_uInt8[]> | m_rawdata |
Protected Member Functions inherited from vcl::TrueTypeTable | |
TrueTypeTable (sal_uInt32 tag_) | |
Creates a new 'name' table.
If n != 0 the table gets populated by the Name Records stored in the nr array. This function allocates memory for its own copy of NameRecords, so nr array has to be explicitly deallocated when it is not needed.
vcl::TrueTypeTableName::TrueTypeTableName | ( | std::vector< NameRecord > | nr | ) |
|
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 514 of file ttcr.cxx.
References vcl::TableEntry::data, i, vcl::TableEntry::length, m_list, vcl::TrueTypeTable::m_rawdata, n, name, vcl::PutUInt16(), vcl::T_name, vcl::TableEntry::tag, vcl::TTCR_NAMETOOLONG, vcl::TTCR_NONAMES, vcl::TTCR_OK, and vcl::ttmalloc().
|
private |
Definition at line 268 of file ttcr.hxx.
Referenced by GetRawData().