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::Face Class Reference

#include <Face.h>

Inheritance diagram for graphite2::Face:
[legend]
Collaboration diagram for graphite2::Face:
[legend]

Classes

class  Table
 

Public Member Functions

 Face (const void *appFaceHandle, const gr_face_ops &ops)
 
virtual ~Face ()
 
virtual bool runGraphite (Segment *seg, const Silf *silf) const
 
bool readGlyphs (uint32 faceOptions)
 
bool readGraphite (const Table &silf)
 
bool readFeatures ()
 
void takeFileFace (FileFace *pFileFace)
 
const SillMaptheSill () const
 
const GlyphCacheglyphs () const
 
Cmapcmap () const
 
NameTablenameTable () const
 
void setLogger (FILE *log_file)
 
jsonlogger () const throw ()
 
const SilfchooseSilf (uint32 script) const
 
uint16 languageForLocale (const char *locale) const
 
uint16 numFeatures () const
 
const FeatureReffeatureById (uint32 id) const
 
const FeatureReffeature (uint16 index) const
 
int32 getGlyphMetric (uint16 gid, uint8 metric) const
 
uint16 findPseudo (uint32 uid) const
 
unsigned int error () const
 
bool error (Error e)
 
unsigned int error_context () const
 
void error_context (unsigned int errcntxt)
 
 Face (const void *appFaceHandle, const gr_face_ops &ops)
 
virtual ~Face ()
 
virtual bool runGraphite (Segment *seg, const Silf *silf) const
 
bool readGlyphs (uint32 faceOptions)
 
bool readGraphite (const Table &silf)
 
bool readFeatures ()
 
void takeFileFace (FileFace *pFileFace)
 
const SillMaptheSill () const
 
const GlyphCacheglyphs () const
 
Cmapcmap () const
 
NameTablenameTable () const
 
void setLogger (FILE *log_file)
 
jsonlogger () const throw ()
 
const SilfchooseSilf (uint32 script) const
 
uint16 languageForLocale (const char *locale) const
 
uint16 numFeatures () const
 
const FeatureReffeatureById (uint32 id) const
 
const FeatureReffeature (uint16 index) const
 
int32 getGlyphMetric (uint16 gid, uint8 metric) const
 
uint16 findPseudo (uint32 uid) const
 
unsigned int error () const
 
bool error (Error e)
 
unsigned int error_context () const
 
void error_context (unsigned int errcntxt)
 

Static Public Member Functions

static float default_glyph_advance (const void *face_ptr, gr_uint16 glyphid)
 
static float default_glyph_advance (const void *face_ptr, gr_uint16 glyphid)
 

Public Attributes

 CLASS_NEW_DELETE
 

Protected Attributes

Silfm_silfs
 
uint16 m_numSilf
 

Private Member Functions

 Face (const Face &)
 
Faceoperator= (const Face &)
 
 Face (const Face &)
 
Faceoperator= (const Face &)
 

Private Attributes

SillMap m_Sill
 
gr_face_ops m_ops
 
const voidm_appFaceHandle
 
FileFacem_pFileFace
 
GlyphCachem_pGlyphFaceCache
 
Cmapm_cmap
 
NameTablem_pNames
 
jsonm_logger
 
unsigned int m_error
 
unsigned int m_errcntxt
 
uint16 m_ascent
 
uint16 m_descent
 

Detailed Description

Definition at line 53 of file Face.h.

Constructor & Destructor Documentation

◆ Face() [1/4]

graphite2::Face::Face ( const Face )
private

◆ Face() [2/4]

Face::Face ( const void appFaceHandle,
const gr_face_ops ops 
)

Definition at line 53 of file Face.cpp.

References m_ops, memcpy, memset(), graphite2::min(), and gr_face_ops::size.

◆ ~Face() [1/2]

Face::~Face ( )
virtual

Definition at line 71 of file Face.cpp.

References m_cmap, m_pFileFace, m_pGlyphFaceCache, m_pNames, m_silfs, and setLogger().

◆ Face() [3/4]

graphite2::Face::Face ( const Face )
private

◆ Face() [4/4]

graphite2::Face::Face ( const void appFaceHandle,
const gr_face_ops ops 
)

◆ ~Face() [2/2]

virtual graphite2::Face::~Face ( )
virtual

Member Function Documentation

◆ chooseSilf() [1/2]

const Silf * Face::chooseSilf ( uint32  script) const

Definition at line 220 of file Face.cpp.

References m_numSilf, m_silfs, NULL, and script.

Referenced by graphite2::Segment::chooseSilf(), gr_face_info(), and gr_face_is_char_supported().

◆ chooseSilf() [2/2]

const Silf* graphite2::Face::chooseSilf ( uint32  script) const

◆ cmap() [1/2]

Cmap & graphite2::Face::cmap ( ) const
inline

Definition at line 156 of file Face.h.

References m_cmap.

Referenced by gr_face_is_char_supported().

◆ cmap() [2/2]

Cmap& graphite2::Face::cmap ( ) const

◆ default_glyph_advance() [1/2]

float Face::default_glyph_advance ( const void face_ptr,
gr_uint16  glyphid 
)
static

Definition at line 83 of file Face.cpp.

References font_ptr, font::glyph, and glyph::x.

Referenced by graphite2::Font::Font().

◆ default_glyph_advance() [2/2]

static float graphite2::Face::default_glyph_advance ( const void face_ptr,
gr_uint16  glyphid 
)
static

◆ error() [1/4]

unsigned int graphite2::Face::error ( ) const
inline

Definition at line 94 of file Face.h.

References m_error.

Referenced by readGlyphs(), and readGraphite().

◆ error() [2/4]

unsigned int graphite2::Face::error ( ) const
inline

Definition at line 94 of file Face.h.

References m_error.

◆ error() [3/4]

bool graphite2::Face::error ( Error  e)
inline

Definition at line 95 of file Face.h.

References e, and m_error.

◆ error() [4/4]

bool graphite2::Face::error ( Error  e)
inline

Definition at line 95 of file Face.h.

References e, and m_error.

◆ error_context() [1/4]

unsigned int graphite2::Face::error_context ( ) const
inline

Definition at line 96 of file Face.h.

References m_error.

Referenced by readGlyphs(), and readGraphite().

◆ error_context() [2/4]

unsigned int graphite2::Face::error_context ( ) const
inline

Definition at line 96 of file Face.h.

References m_error.

◆ error_context() [3/4]

void graphite2::Face::error_context ( unsigned int  errcntxt)
inline

Definition at line 97 of file Face.h.

References m_errcntxt.

◆ error_context() [4/4]

void graphite2::Face::error_context ( unsigned int  errcntxt)
inline

Definition at line 97 of file Face.h.

References m_errcntxt.

◆ feature() [1/2]

const FeatureRef * graphite2::Face::feature ( uint16  index) const
inline

◆ feature() [2/2]

const FeatureRef* graphite2::Face::feature ( uint16  index) const

◆ featureById() [1/2]

const FeatureRef * graphite2::Face::featureById ( uint32  id) const
inline

◆ featureById() [2/2]

const FeatureRef* graphite2::Face::featureById ( uint32  id) const

◆ findPseudo() [1/2]

uint16 Face::findPseudo ( uint32  uid) const

Definition at line 230 of file Face.cpp.

References graphite2::Silf::findPseudo(), m_numSilf, and m_silfs.

◆ findPseudo() [2/2]

uint16 graphite2::Face::findPseudo ( uint32  uid) const

◆ getGlyphMetric() [1/2]

◆ getGlyphMetric() [2/2]

int32 graphite2::Face::getGlyphMetric ( uint16  gid,
uint8  metric 
) const

◆ glyphs() [1/2]

◆ glyphs() [2/2]

const GlyphCache& graphite2::Face::glyphs ( ) const

◆ languageForLocale() [1/2]

uint16 Face::languageForLocale ( const char *  locale) const

Definition at line 267 of file Face.cpp.

References graphite2::NameTable::getLanguageId(), locale, m_pNames, and nameTable().

◆ languageForLocale() [2/2]

uint16 graphite2::Face::languageForLocale ( const char *  locale) const

◆ logger() [1/2]

json * graphite2::Face::logger ( ) const
throw (
)
inline

◆ logger() [2/2]

json* graphite2::Face::logger ( ) const
throw (
)

◆ nameTable() [1/2]

NameTable * Face::nameTable ( ) const

◆ nameTable() [2/2]

NameTable* graphite2::Face::nameTable ( ) const

◆ numFeatures() [1/2]

uint16 graphite2::Face::numFeatures ( ) const
inline

◆ numFeatures() [2/2]

uint16 graphite2::Face::numFeatures ( ) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ readFeatures() [1/2]

bool Face::readFeatures ( )

Definition at line 158 of file Face.cpp.

References m_Sill, and graphite2::SillMap::readFace().

◆ readFeatures() [2/2]

bool graphite2::Face::readFeatures ( )

◆ readGlyphs() [1/2]

◆ readGlyphs() [2/2]

bool graphite2::Face::readGlyphs ( uint32  faceOptions)

◆ readGraphite() [1/2]

◆ readGraphite() [2/2]

bool graphite2::Face::readGraphite ( const Table silf)

◆ runGraphite() [1/2]

◆ runGraphite() [2/2]

virtual bool graphite2::Face::runGraphite ( Segment seg,
const Silf silf 
) const
virtual

◆ setLogger() [1/2]

void graphite2::Face::setLogger ( FILE log_file)

Referenced by ~Face().

◆ setLogger() [2/2]

void graphite2::Face::setLogger ( FILE log_file)

◆ takeFileFace() [1/2]

void graphite2::Face::takeFileFace ( FileFace pFileFace)

Referenced by gr_make_file_face().

◆ takeFileFace() [2/2]

void graphite2::Face::takeFileFace ( FileFace pFileFace)

◆ theSill() [1/2]

◆ theSill() [2/2]

const SillMap& graphite2::Face::theSill ( ) const

Member Data Documentation

◆ CLASS_NEW_DELETE

graphite2::Face::CLASS_NEW_DELETE

Definition at line 99 of file Face.h.

◆ m_appFaceHandle

const void * graphite2::Face::m_appFaceHandle
private

Definition at line 103 of file Face.h.

Referenced by graphite2::Face::Table::release().

◆ m_ascent

uint16 graphite2::Face::m_ascent
private

Definition at line 115 of file Face.h.

Referenced by getGlyphMetric().

◆ m_cmap

Cmap * graphite2::Face::m_cmap
mutableprivate

Definition at line 106 of file Face.h.

Referenced by cmap(), readGlyphs(), and ~Face().

◆ m_descent

uint16 graphite2::Face::m_descent
private

Definition at line 116 of file Face.h.

Referenced by getGlyphMetric().

◆ m_errcntxt

unsigned int graphite2::Face::m_errcntxt
private

Definition at line 110 of file Face.h.

Referenced by error_context().

◆ m_error

unsigned int graphite2::Face::m_error
private

Definition at line 109 of file Face.h.

Referenced by error(), and error_context().

◆ m_logger

json * graphite2::Face::m_logger
mutableprivate

Definition at line 108 of file Face.h.

Referenced by logger().

◆ m_numSilf

uint16 graphite2::Face::m_numSilf
protected

Definition at line 113 of file Face.h.

Referenced by chooseSilf(), findPseudo(), and readGraphite().

◆ m_ops

gr_face_ops graphite2::Face::m_ops
private

Definition at line 102 of file Face.h.

Referenced by Face(), and graphite2::Face::Table::release().

◆ m_pFileFace

FileFace * graphite2::Face::m_pFileFace
private

Definition at line 104 of file Face.h.

Referenced by ~Face().

◆ m_pGlyphFaceCache

GlyphCache * graphite2::Face::m_pGlyphFaceCache
mutableprivate

Definition at line 105 of file Face.h.

Referenced by glyphs(), readGlyphs(), and ~Face().

◆ m_pNames

NameTable * graphite2::Face::m_pNames
mutableprivate

Definition at line 107 of file Face.h.

Referenced by languageForLocale(), nameTable(), and ~Face().

◆ m_silfs

Silf * graphite2::Face::m_silfs
protected

Definition at line 112 of file Face.h.

Referenced by chooseSilf(), findPseudo(), readGraphite(), and ~Face().

◆ m_Sill

SillMap graphite2::Face::m_Sill
private

Definition at line 101 of file Face.h.

Referenced by feature(), featureById(), numFeatures(), readFeatures(), and theSill().


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