LibreOffice Module vcl (master) 1
|
Creates a new empty 'cmap' table. More...
#include <ttcr.hxx>
Public Member Functions | |
TrueTypeTableCmap () | |
virtual | ~TrueTypeTableCmap () override |
virtual int | GetRawData (TableEntry *) override |
This function converts the data of a TrueType table to a raw array of bytes. More... | |
void | cmapAdd (sal_uInt32 id, sal_uInt32 c, sal_uInt32 g) |
Add a character/glyph pair to a cmap table. 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::unique_ptr< table_cmap > | m_cmap |
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_) | |
vcl::TrueTypeTableCmap::TrueTypeTableCmap | ( | ) |
Definition at line 721 of file ttcr.cxx.
References CMAP_SUBTABLE_INIT, and m_cmap.
|
overridevirtual |
void vcl::TrueTypeTableCmap::cmapAdd | ( | sal_uInt32 | id, |
sal_uInt32 | c, | ||
sal_uInt32 | g | ||
) |
|
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 466 of file ttcr.cxx.
References vcl::TableEntry::data, get(), i, vcl::TableEntry::length, m_cmap, vcl::TrueTypeTable::m_rawdata, vcl::PackCmap(), vcl::PutUInt16(), vcl::PutUInt32(), vcl::T_cmap, vcl::TableEntry::tag, vcl::TTCR_OK, and vcl::ttmalloc().
|
private |
Definition at line 252 of file ttcr.hxx.
Referenced by cmapAdd(), GetRawData(), and TrueTypeTableCmap().