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

Creates a new 'head' table for a TrueType font. More...

#include <ttcr.hxx>

Inheritance diagram for vcl::TrueTypeTableHead:
Collaboration diagram for vcl::TrueTypeTableHead:

Public Member Functions

 TrueTypeTableHead (sal_uInt32 fontRevision, sal_uInt16 flags, sal_uInt16 unitsPerEm, const sal_uInt8 *created, sal_uInt16 macStyle, sal_uInt16 lowestRecPPEM, sal_Int16 fontDirectionHint)
virtual ~TrueTypeTableHead () 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_head
- 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 'head' table for a TrueType font.

Allocates memory for it. Since a lot of values in the 'head' table depend on the rest of the tables in the TrueType font this table should be the last one added to the font.

Definition at line 142 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableHead()

vcl::TrueTypeTableHead::TrueTypeTableHead ( sal_uInt32  fontRevision,
sal_uInt16  flags,
sal_uInt16  unitsPerEm,
const sal_uInt8 created,
sal_uInt16  macStyle,
sal_uInt16  lowestRecPPEM,
sal_Int16  fontDirectionHint 

Definition at line 647 of file ttcr.cxx.

References m_head, vcl::PutUInt16(), and vcl::PutUInt32().

◆ ~TrueTypeTableHead()

vcl::TrueTypeTableHead::~TrueTypeTableHead ( )

Definition at line 282 of file ttcr.cxx.

Member Function Documentation

◆ GetRawData()

int vcl::TrueTypeTableHead::GetRawData ( TableEntry )

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 334 of file ttcr.cxx.

References vcl::TableEntry::data, vcl::HEAD_Length, vcl::TableEntry::length, m_head, vcl::T_head, vcl::TableEntry::tag, and vcl::TTCR_OK.

Member Data Documentation

◆ m_head

std::unique_ptr<sal_uInt8[]> vcl::TrueTypeTableHead::m_head

Definition at line 155 of file ttcr.hxx.

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

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