LibreOffice Module vcl (master) 1
|
Creates a new empty 'glyf' table. More...
#include <ttcr.hxx>
Public Member Functions | |
TrueTypeTableGlyf () | |
virtual | ~TrueTypeTableGlyf () override |
virtual int | GetRawData (TableEntry *) override |
This function converts the data of a TrueType table to a raw array of bytes. More... | |
sal_uInt32 | glyfAdd (std::unique_ptr< GlyphData > glyphdata, AbstractTrueTypeFont *fnt) |
Add a glyph to a glyf table. More... | |
sal_uInt32 | glyfCount () |
Query the number of glyphs currently stored in the 'glyf' 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... | |
Public Attributes | |
std::vector< std::unique_ptr< GlyphData > > | m_list |
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_) | |
|
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 374 of file ttcr.cxx.
References vcl::TableEntry::data, vcl::TableEntry::length, m_list, vcl::TrueTypeTable::m_rawdata, n, p, vcl::T_glyf, vcl::TableEntry::tag, vcl::TTCR_OK, vcl::TTCR_ZEROGLYPHS, and vcl::ttmalloc().
sal_uInt32 vcl::TrueTypeTableGlyf::glyfAdd | ( | std::unique_ptr< GlyphData > | glyphdata, |
AbstractTrueTypeFont * | fnt | ||
) |
Add a glyph to a glyf table.
NOTE: This function does not duplicate GlyphData, so memory will be deallocated in the table destructor
Definition at line 798 of file ttcr.cxx.
References vcl::GetTTGlyphComponents(), vcl::GetTTRawGlyphData(), m_list, and n.
|
inline |
std::vector<std::unique_ptr<GlyphData> > vcl::TrueTypeTableGlyf::m_list |
Definition at line 233 of file ttcr.hxx.
Referenced by GetRawData(), glyfAdd(), glyfCount(), and vcl::TrueTypeCreator::ProcessTables().