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

Creates a new empty 'loca' table for a TrueType font. More...

#include <ttcr.hxx>

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

Public Member Functions

 TrueTypeTableLoca ()
 
virtual ~TrueTypeTableLoca () 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< tdata_locam_loca
 
- 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 'loca' table for a TrueType font.

INTERNAL: gets called only from ProcessTables();

Definition at line 181 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableLoca()

vcl::TrueTypeTableLoca::TrueTypeTableLoca ( )

Definition at line 698 of file ttcr.cxx.

References m_loca.

◆ ~TrueTypeTableLoca()

vcl::TrueTypeTableLoca::~TrueTypeTableLoca ( )
overridevirtual

Definition at line 290 of file ttcr.cxx.

Member Function Documentation

◆ GetRawData()

int vcl::TrueTypeTableLoca::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 352 of file ttcr.cxx.

References vcl::TableEntry::data, vcl::TableEntry::length, m_loca, vcl::T_loca, vcl::TableEntry::tag, vcl::TTCR_OK, and vcl::TTCR_ZEROGLYPHS.

Member Data Documentation

◆ m_loca

std::unique_ptr<tdata_loca> vcl::TrueTypeTableLoca::m_loca

Definition at line 188 of file ttcr.hxx.

Referenced by GetRawData(), and TrueTypeTableLoca().


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