w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::NameTable Class Reference

#include <NameTable.h>

Collaboration diagram for graphite2::NameTable:
[legend]

Public Types

enum  eNameFallback {
  eNoFallback = 0 , eEnUSFallbackOnly = 1 , eEnOrAnyFallback = 2 , eNoFallback = 0 ,
  eEnUSFallbackOnly = 1 , eEnOrAnyFallback = 2
}
 
enum  eNameFallback {
  eNoFallback = 0 , eEnUSFallbackOnly = 1 , eEnOrAnyFallback = 2 , eNoFallback = 0 ,
  eEnUSFallbackOnly = 1 , eEnOrAnyFallback = 2
}
 

Public Member Functions

 NameTable (const void *data, size_t length, uint16 platfromId=3, uint16 encodingID=1)
 
 ~NameTable ()
 
uint16 setPlatformEncoding (uint16 platfromId=3, uint16 encodingID=1)
 
voidgetName (uint16 &languageId, uint16 nameId, gr_encform enc, uint32 &length)
 
uint16 getLanguageId (const char *bcp47Locale)
 
 NameTable (const void *data, size_t length, uint16 platfromId=3, uint16 encodingID=1)
 
 ~NameTable ()
 
uint16 setPlatformEncoding (uint16 platfromId=3, uint16 encodingID=1)
 
voidgetName (uint16 &languageId, uint16 nameId, gr_encform enc, uint32 &length)
 
uint16 getLanguageId (const char *bcp47Locale)
 

Private Member Functions

 NameTable (const NameTable &)
 
NameTableoperator= (const NameTable &)
 
 NameTable (const NameTable &)
 
NameTableoperator= (const NameTable &)
 

Private Attributes

uint16 m_platformId
 
uint16 m_encodingId
 
uint16 m_languageCount
 
uint16 m_platformOffset
 
uint16 m_platformLastRecord
 
uint16 m_nameDataLength
 
const TtfUtil::Sfnt::FontNamesm_table
 
const uint8m_nameData
 
Locale2Lang m_locale2Lang
 

Detailed Description

Definition at line 35 of file NameTable.h.

Member Enumeration Documentation

◆ eNameFallback [1/2]

Enumerator
eNoFallback 
eEnUSFallbackOnly 
eEnOrAnyFallback 
eNoFallback 
eEnUSFallbackOnly 
eEnOrAnyFallback 

Definition at line 43 of file NameTable.h.

◆ eNameFallback [2/2]

Enumerator
eNoFallback 
eEnUSFallbackOnly 
eEnOrAnyFallback 
eNoFallback 
eEnUSFallbackOnly 
eEnOrAnyFallback 

Definition at line 43 of file NameTable.h.

Constructor & Destructor Documentation

◆ NameTable() [1/4]

graphite2::NameTable::NameTable ( const NameTable )
private

◆ NameTable() [2/4]

NameTable::NameTable ( const void data,
size_t  length,
uint16  platfromId = 3,
uint16  encodingID = 1 
)

◆ ~NameTable() [1/2]

graphite2::NameTable::~NameTable ( )
inline

Definition at line 42 of file NameTable.h.

References free, and m_table.

◆ NameTable() [3/4]

graphite2::NameTable::NameTable ( const NameTable )
private

◆ NameTable() [4/4]

graphite2::NameTable::NameTable ( const void data,
size_t  length,
uint16  platfromId = 3,
uint16  encodingID = 1 
)

◆ ~NameTable() [2/2]

graphite2::NameTable::~NameTable ( )
inline

Definition at line 42 of file NameTable.h.

References free, and m_table.

Member Function Documentation

◆ getLanguageId() [1/2]

◆ getLanguageId() [2/2]

uint16 graphite2::NameTable::getLanguageId ( const char *  bcp47Locale)

◆ getName() [1/2]

◆ getName() [2/2]

void* graphite2::NameTable::getName ( uint16 languageId,
uint16  nameId,
gr_encform  enc,
uint32 length 
)

◆ operator=() [1/2]

NameTable& graphite2::NameTable::operator= ( const NameTable )
private

◆ operator=() [2/2]

NameTable& graphite2::NameTable::operator= ( const NameTable )
private

◆ setPlatformEncoding() [1/2]

◆ setPlatformEncoding() [2/2]

uint16 graphite2::NameTable::setPlatformEncoding ( uint16  platfromId = 3,
uint16  encodingID = 1 
)

Member Data Documentation

◆ m_encodingId

uint16 graphite2::NameTable::m_encodingId
private

Definition at line 55 of file NameTable.h.

Referenced by setPlatformEncoding().

◆ m_languageCount

uint16 graphite2::NameTable::m_languageCount
private

Definition at line 56 of file NameTable.h.

◆ m_locale2Lang

Locale2Lang graphite2::NameTable::m_locale2Lang
private

Definition at line 62 of file NameTable.h.

Referenced by getLanguageId().

◆ m_nameData

const uint8 * graphite2::NameTable::m_nameData
private

Definition at line 61 of file NameTable.h.

Referenced by getLanguageId(), getName(), NameTable(), and setPlatformEncoding().

◆ m_nameDataLength

uint16 graphite2::NameTable::m_nameDataLength
private

Definition at line 59 of file NameTable.h.

Referenced by getLanguageId(), getName(), and NameTable().

◆ m_platformId

uint16 graphite2::NameTable::m_platformId
private

Definition at line 54 of file NameTable.h.

Referenced by setPlatformEncoding().

◆ m_platformLastRecord

uint16 graphite2::NameTable::m_platformLastRecord
private

Definition at line 58 of file NameTable.h.

Referenced by getName(), and setPlatformEncoding().

◆ m_platformOffset

uint16 graphite2::NameTable::m_platformOffset
private

Definition at line 57 of file NameTable.h.

Referenced by getName(), and setPlatformEncoding().

◆ m_table

const TtfUtil::Sfnt::FontNames * graphite2::NameTable::m_table
private

Definition at line 60 of file NameTable.h.

Referenced by getLanguageId(), getName(), NameTable(), setPlatformEncoding(), and ~NameTable().


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