LibreOffice Module vcl (master) 1
Public Member Functions | Public Attributes | List of all members
vcl::TrueTypeTableGlyf Class Reference

Creates a new empty 'glyf' table. More...

#include <ttcr.hxx>

Inheritance diagram for vcl::TrueTypeTableGlyf:
[legend]
Collaboration diagram for vcl::TrueTypeTableGlyf:
[legend]

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_)
 

Detailed Description

Creates a new empty 'glyf' table.

Definition at line 210 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableGlyf()

vcl::TrueTypeTableGlyf::TrueTypeTableGlyf ( )

Definition at line 716 of file ttcr.cxx.

◆ ~TrueTypeTableGlyf()

vcl::TrueTypeTableGlyf::~TrueTypeTableGlyf ( )
overridevirtual

Definition at line 298 of file ttcr.cxx.

Member Function Documentation

◆ GetRawData()

int vcl::TrueTypeTableGlyf::GetRawData ( TableEntry )
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

Returns
TTCRErrCode

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().

◆ glyfAdd()

sal_uInt32 vcl::TrueTypeTableGlyf::glyfAdd ( std::unique_ptr< GlyphData glyphdata,
AbstractTrueTypeFont fnt 
)

Add a glyph to a glyf table.

Returns
glyphID of the glyph in the new font

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.

◆ glyfCount()

sal_uInt32 vcl::TrueTypeTableGlyf::glyfCount ( )
inline

Query the number of glyphs currently stored in the 'glyf' table.

Definition at line 231 of file ttcr.hxx.

References m_list.

Member Data Documentation

◆ m_list

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().


The documentation for this class was generated from the following files: