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

#include <GlyphCache.h>

Collaboration diagram for graphite2::GlyphCache:
[legend]

Classes

class  Loader
 

Public Member Functions

 GlyphCache (const Face &face, const uint32 face_options)
 
 ~GlyphCache ()
 
unsigned short numGlyphs () const throw ()
 
unsigned short numAttrs () const throw ()
 
unsigned short unitsPerEm () const throw ()
 
const GlyphFaceglyph (unsigned short glyphid) const
 
const GlyphFaceglyphSafe (unsigned short glyphid) const
 
float getBoundingMetric (unsigned short glyphid, uint8 metric) const
 
uint8 numSubBounds (unsigned short glyphid) const
 
float getSubBoundingMetric (unsigned short glyphid, uint8 subindex, uint8 metric) const
 
const Rectslant (unsigned short glyphid) const
 
const SlantBoxgetBoundingSlantBox (unsigned short glyphid) const
 
const BBoxgetBoundingBBox (unsigned short glyphid) const
 
const SlantBoxgetSubBoundingSlantBox (unsigned short glyphid, uint8 subindex) const
 
const BBoxgetSubBoundingBBox (unsigned short glyphid, uint8 subindex) const
 
bool check (unsigned short glyphid) const
 
bool hasBoxes () const
 
 GlyphCache (const Face &face, const uint32 face_options)
 
 ~GlyphCache ()
 
unsigned short numGlyphs () const throw ()
 
unsigned short numAttrs () const throw ()
 
unsigned short unitsPerEm () const throw ()
 
const GlyphFaceglyph (unsigned short glyphid) const
 
const GlyphFaceglyphSafe (unsigned short glyphid) const
 
float getBoundingMetric (unsigned short glyphid, uint8 metric) const
 
uint8 numSubBounds (unsigned short glyphid) const
 
float getSubBoundingMetric (unsigned short glyphid, uint8 subindex, uint8 metric) const
 
const Rectslant (unsigned short glyphid) const
 
const SlantBoxgetBoundingSlantBox (unsigned short glyphid) const
 
const BBoxgetBoundingBBox (unsigned short glyphid) const
 
const SlantBoxgetSubBoundingSlantBox (unsigned short glyphid, uint8 subindex) const
 
const BBoxgetSubBoundingBBox (unsigned short glyphid, uint8 subindex) const
 
bool check (unsigned short glyphid) const
 
bool hasBoxes () const
 

Public Attributes

 CLASS_NEW_DELETE
 

Private Member Functions

 GlyphCache (const GlyphCache &)
 
GlyphCacheoperator= (const GlyphCache &)
 
 GlyphCache (const GlyphCache &)
 
GlyphCacheoperator= (const GlyphCache &)
 

Private Attributes

const Rect _empty_slant_box
 
const Loader_glyph_loader
 
const GlyphFace ** _glyphs
 
GlyphBox ** _boxes
 
unsigned short _num_glyphs
 
unsigned short _num_attrs
 
unsigned short _upem
 

Detailed Description

Definition at line 89 of file GlyphCache.h.

Constructor & Destructor Documentation

◆ GlyphCache() [1/4]

graphite2::GlyphCache::GlyphCache ( const GlyphCache )
private

◆ GlyphCache() [2/4]

◆ ~GlyphCache() [1/2]

GlyphCache::~GlyphCache ( )

Definition at line 187 of file GlyphCache.cpp.

References _boxes, _glyph_loader, _glyphs, _num_glyphs, free, g, and n.

◆ GlyphCache() [3/4]

graphite2::GlyphCache::GlyphCache ( const GlyphCache )
private

◆ GlyphCache() [4/4]

graphite2::GlyphCache::GlyphCache ( const Face face,
const uint32  face_options 
)

◆ ~GlyphCache() [2/2]

graphite2::GlyphCache::~GlyphCache ( )

Member Function Documentation

◆ check() [1/2]

bool graphite2::GlyphCache::check ( unsigned short  glyphid) const
inline

Definition at line 148 of file GlyphCache.h.

References _boxes, and _num_glyphs.

◆ check() [2/2]

bool graphite2::GlyphCache::check ( unsigned short  glyphid) const

◆ getBoundingBBox() [1/2]

const BBox & graphite2::GlyphCache::getBoundingBBox ( unsigned short  glyphid) const
inline

Definition at line 181 of file GlyphCache.h.

References glyph().

◆ getBoundingBBox() [2/2]

const BBox& graphite2::GlyphCache::getBoundingBBox ( unsigned short  glyphid) const

◆ getBoundingMetric() [1/2]

float graphite2::GlyphCache::getBoundingMetric ( unsigned short  glyphid,
uint8  metric 
) const
inline

◆ getBoundingMetric() [2/2]

float graphite2::GlyphCache::getBoundingMetric ( unsigned short  glyphid,
uint8  metric 
) const

◆ getBoundingSlantBox() [1/2]

const SlantBox & graphite2::GlyphCache::getBoundingSlantBox ( unsigned short  glyphid) const
inline

Definition at line 176 of file GlyphCache.h.

References _boxes, graphite2::SlantBox::empty, and slant().

◆ getBoundingSlantBox() [2/2]

const SlantBox& graphite2::GlyphCache::getBoundingSlantBox ( unsigned short  glyphid) const

◆ getSubBoundingBBox() [1/2]

const BBox & graphite2::GlyphCache::getSubBoundingBBox ( unsigned short  glyphid,
uint8  subindex 
) const
inline

Definition at line 211 of file GlyphCache.h.

References _boxes, and b.

◆ getSubBoundingBBox() [2/2]

const BBox& graphite2::GlyphCache::getSubBoundingBBox ( unsigned short  glyphid,
uint8  subindex 
) const

◆ getSubBoundingMetric() [1/2]

float graphite2::GlyphCache::getSubBoundingMetric ( unsigned short  glyphid,
uint8  subindex,
uint8  metric 
) const
inline

Definition at line 187 of file GlyphCache.h.

References _boxes, b, mftrace::metric, and NULL.

◆ getSubBoundingMetric() [2/2]

float graphite2::GlyphCache::getSubBoundingMetric ( unsigned short  glyphid,
uint8  subindex,
uint8  metric 
) const

◆ getSubBoundingSlantBox() [1/2]

const SlantBox & graphite2::GlyphCache::getSubBoundingSlantBox ( unsigned short  glyphid,
uint8  subindex 
) const
inline

Definition at line 205 of file GlyphCache.h.

References _boxes, and b.

◆ getSubBoundingSlantBox() [2/2]

const SlantBox& graphite2::GlyphCache::getSubBoundingSlantBox ( unsigned short  glyphid,
uint8  subindex 
) const

◆ glyph() [1/2]

const GlyphFace * GlyphCache::glyph ( unsigned short  glyphid) const

◆ glyph() [2/2]

const GlyphFace* graphite2::GlyphCache::glyph ( unsigned short  glyphid) const

◆ glyphSafe() [1/2]

const GlyphFace * graphite2::GlyphCache::glyphSafe ( unsigned short  glyphid) const
inline

◆ glyphSafe() [2/2]

const GlyphFace* graphite2::GlyphCache::glyphSafe ( unsigned short  glyphid) const

◆ hasBoxes() [1/2]

bool graphite2::GlyphCache::hasBoxes ( ) const
inline

Definition at line 115 of file GlyphCache.h.

References _boxes.

◆ hasBoxes() [2/2]

bool graphite2::GlyphCache::hasBoxes ( ) const
inline

Definition at line 115 of file GlyphCache.h.

References _boxes.

◆ numAttrs() [1/2]

unsigned short graphite2::GlyphCache::numAttrs ( ) const
throw (
)
inline

Definition at line 136 of file GlyphCache.h.

References _num_attrs.

◆ numAttrs() [2/2]

unsigned short graphite2::GlyphCache::numAttrs ( ) const
throw (
)

◆ numGlyphs() [1/2]

unsigned short graphite2::GlyphCache::numGlyphs ( ) const
throw (
)
inline

Definition at line 130 of file GlyphCache.h.

References _num_glyphs.

Referenced by gr_face_n_glyphs(), and graphite2::Face::readGlyphs().

◆ numGlyphs() [2/2]

unsigned short graphite2::GlyphCache::numGlyphs ( ) const
throw (
)

◆ numSubBounds() [1/2]

uint8 graphite2::GlyphCache::numSubBounds ( unsigned short  glyphid) const
inline

Definition at line 218 of file GlyphCache.h.

References _boxes, and graphite2::GlyphBox::num().

◆ numSubBounds() [2/2]

uint8 graphite2::GlyphCache::numSubBounds ( unsigned short  glyphid) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ slant() [1/2]

const Rect& graphite2::GlyphCache::slant ( unsigned short  glyphid) const
inline

Definition at line 109 of file GlyphCache.h.

References _boxes, _empty_slant_box, and graphite2::GlyphBox::slant().

Referenced by getBoundingSlantBox().

◆ slant() [2/2]

const Rect& graphite2::GlyphCache::slant ( unsigned short  glyphid) const
inline

Definition at line 109 of file GlyphCache.h.

References _boxes, _empty_slant_box, and graphite2::GlyphBox::slant().

◆ unitsPerEm() [1/2]

unsigned short graphite2::GlyphCache::unitsPerEm ( ) const
throw (
)
inline

Definition at line 142 of file GlyphCache.h.

References _upem.

Referenced by graphite2::Face::readGlyphs().

◆ unitsPerEm() [2/2]

unsigned short graphite2::GlyphCache::unitsPerEm ( ) const
throw (
)

Member Data Documentation

◆ _boxes

◆ _empty_slant_box

const Rect graphite2::GlyphCache::_empty_slant_box
private

Definition at line 120 of file GlyphCache.h.

Referenced by slant().

◆ _glyph_loader

const Loader * graphite2::GlyphCache::_glyph_loader
private

Definition at line 121 of file GlyphCache.h.

Referenced by GlyphCache(), and ~GlyphCache().

◆ _glyphs

const GlyphFace ** graphite2::GlyphCache::_glyphs
private

Definition at line 122 of file GlyphCache.h.

Referenced by GlyphCache(), and ~GlyphCache().

◆ _num_attrs

unsigned short graphite2::GlyphCache::_num_attrs
private

Definition at line 125 of file GlyphCache.h.

Referenced by GlyphCache(), and numAttrs().

◆ _num_glyphs

unsigned short graphite2::GlyphCache::_num_glyphs
private

Definition at line 124 of file GlyphCache.h.

Referenced by check(), getBoundingMetric(), GlyphCache(), glyphSafe(), numGlyphs(), and ~GlyphCache().

◆ _upem

unsigned short graphite2::GlyphCache::_upem
private

Definition at line 126 of file GlyphCache.h.

Referenced by GlyphCache(), and unitsPerEm().

◆ CLASS_NEW_DELETE

graphite2::GlyphCache::CLASS_NEW_DELETE

Definition at line 117 of file GlyphCache.h.


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