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

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

#include <ttcr.hxx>

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

Public Member Functions

 TrueTypeTableCmap ()
 
virtual ~TrueTypeTableCmap () override
 
virtual int GetRawData (TableEntry *) override
 This function converts the data of a TrueType table to a raw array of bytes. More...
 
void cmapAdd (sal_uInt32 id, sal_uInt32 c, sal_uInt32 g)
 Add a character/glyph pair to a cmap 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...
 

Private Attributes

std::unique_ptr< table_cmapm_cmap
 

Additional Inherited Members

- Public Attributes inherited from vcl::TrueTypeTable
sal_uInt32 m_tag = 0
 
std::unique_ptr< sal_uInt8[]> m_rawdata
 
- Protected Member Functions inherited from vcl::TrueTypeTable
 TrueTypeTable (sal_uInt32 tag_)
 

Detailed Description

Creates a new empty 'cmap' table.

Definition at line 239 of file ttcr.hxx.

Constructor & Destructor Documentation

◆ TrueTypeTableCmap()

vcl::TrueTypeTableCmap::TrueTypeTableCmap ( )

Definition at line 721 of file ttcr.cxx.

References CMAP_SUBTABLE_INIT, and m_cmap.

◆ ~TrueTypeTableCmap()

vcl::TrueTypeTableCmap::~TrueTypeTableCmap ( )
overridevirtual

Definition at line 302 of file ttcr.cxx.

Member Function Documentation

◆ cmapAdd()

void vcl::TrueTypeTableCmap::cmapAdd ( sal_uInt32  id,
sal_uInt32  c,
sal_uInt32  g 
)

Add a character/glyph pair to a cmap table.

Definition at line 752 of file ttcr.cxx.

References CMAP_SUBTABLE_INCR, i, m_cmap, and n.

◆ GetRawData()

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

References vcl::TableEntry::data, get(), i, vcl::TableEntry::length, m_cmap, vcl::TrueTypeTable::m_rawdata, vcl::PackCmap(), vcl::PutUInt16(), vcl::PutUInt32(), vcl::T_cmap, vcl::TableEntry::tag, vcl::TTCR_OK, and vcl::ttmalloc().

Member Data Documentation

◆ m_cmap

std::unique_ptr<table_cmap> vcl::TrueTypeTableCmap::m_cmap
private

Definition at line 252 of file ttcr.hxx.

Referenced by cmapAdd(), GetRawData(), and TrueTypeTableCmap().


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