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

Creates a new 'maxp' table based on an existing maxp table. More...

#include <ttcr.hxx>

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

Public Member Functions

 TrueTypeTableMaxp (const sal_uInt8 *maxp, int size)
 
virtual ~TrueTypeTableMaxp () 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< sal_uInt8[]> m_maxp
 
- 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 'maxp' table based on an existing maxp table.

If maxp is 0, a new empty maxp table is created size specifies the size of existing maxp table for error-checking purposes

Definition at line 197 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableMaxp()

vcl::TrueTypeTableMaxp::TrueTypeTableMaxp ( const sal_uInt8 maxp,
int  size 
)

Definition at line 706 of file ttcr.cxx.

References m_maxp, vcl::MAXP_Version1Length, size, and vcl::ttmalloc().

◆ ~TrueTypeTableMaxp()

vcl::TrueTypeTableMaxp::~TrueTypeTableMaxp ( )
overridevirtual

Definition at line 294 of file ttcr.cxx.

Member Function Documentation

◆ GetRawData()

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

References vcl::TableEntry::data, vcl::TableEntry::length, m_maxp, vcl::MAXP_Version1Length, vcl::T_maxp, vcl::TableEntry::tag, and vcl::TTCR_OK.

Member Data Documentation

◆ m_maxp

std::unique_ptr<sal_uInt8[]> vcl::TrueTypeTableMaxp::m_maxp

Definition at line 204 of file ttcr.hxx.

Referenced by GetRawData(), vcl::TrueTypeCreator::ProcessTables(), and TrueTypeTableMaxp().


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