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

#include <Font.h>

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

Public Member Functions

 Font (float ppm, const Face &face, const void *appFontHandle=0, const gr_font_ops *ops=0)
 
virtual ~Font ()
 
float advance (unsigned short glyphid) const
 
float scale () const
 
bool isHinted () const
 
const Faceface () const
 
 operator bool () const throw ()
 
 Font (float ppm, const Face &face, const void *appFontHandle=0, const gr_font_ops *ops=0)
 
virtual ~Font ()
 
float advance (unsigned short glyphid) const
 
float scale () const
 
bool isHinted () const
 
const Faceface () const
 
 operator bool () const throw ()
 

Public Attributes

 CLASS_NEW_DELETE
 

Private Member Functions

 Font (const Font &)
 
Fontoperator= (const Font &)
 
 Font (const Font &)
 
Fontoperator= (const Font &)
 

Private Attributes

gr_font_ops m_ops
 
const void *const m_appFontHandle
 
float * m_advances
 
const Facem_face
 
float m_scale
 
bool m_hinted
 

Detailed Description

Definition at line 37 of file Font.h.

Constructor & Destructor Documentation

◆ Font() [1/4]

Font::Font ( float  ppm,
const Face face,
const void appFontHandle = 0,
const gr_font_ops ops = 0 
)

◆ ~Font() [1/2]

Font::~Font ( )
virtual

Definition at line 55 of file Font.cpp.

References free, and m_advances.

◆ Font() [2/4]

graphite2::Font::Font ( const Font )
private

◆ Font() [3/4]

graphite2::Font::Font ( float  ppm,
const Face face,
const void appFontHandle = 0,
const gr_font_ops ops = 0 
)

◆ ~Font() [2/2]

virtual graphite2::Font::~Font ( )
virtual

◆ Font() [4/4]

graphite2::Font::Font ( const Font )
private

Member Function Documentation

◆ advance() [1/2]

float Font::advance ( unsigned short  glyphid) const
inline

Definition at line 63 of file Font.h.

References gr_font_ops::glyph_advance_x, INVALID_ADVANCE, m_advances, m_appFontHandle, and m_ops.

◆ advance() [2/2]

float graphite2::Font::advance ( unsigned short  glyphid) const

◆ face() [1/2]

const Face & Font::face ( ) const
inline

Definition at line 83 of file Font.h.

References m_face.

◆ face() [2/2]

const Face& graphite2::Font::face ( ) const

◆ isHinted() [1/2]

bool Font::isHinted ( ) const
inline

Definition at line 77 of file Font.h.

References m_hinted.

◆ isHinted() [2/2]

bool graphite2::Font::isHinted ( ) const

◆ operator bool() [1/2]

graphite2::Font::operator bool ( ) const
throw (
)
inline

Definition at line 47 of file Font.h.

References m_advances.

◆ operator bool() [2/2]

graphite2::Font::operator bool ( ) const
throw (
)
inline

Definition at line 47 of file Font.h.

References m_advances.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ scale() [1/2]

float Font::scale ( ) const
inline

Definition at line 71 of file Font.h.

References m_scale.

◆ scale() [2/2]

float graphite2::Font::scale ( ) const

Member Data Documentation

◆ CLASS_NEW_DELETE

graphite2::Font::CLASS_NEW_DELETE

Definition at line 49 of file Font.h.

◆ m_advances

float * Font::m_advances
private

Definition at line 53 of file Font.h.

Referenced by advance(), Font(), operator bool(), and ~Font().

◆ m_appFontHandle

const void *const Font::m_appFontHandle
private

Definition at line 52 of file Font.h.

Referenced by advance().

◆ m_face

const Face & Font::m_face
private

Definition at line 54 of file Font.h.

Referenced by face().

◆ m_hinted

bool Font::m_hinted
private

Definition at line 56 of file Font.h.

Referenced by Font(), and isHinted().

◆ m_ops

gr_font_ops Font::m_ops
private

Definition at line 51 of file Font.h.

Referenced by advance(), and Font().

◆ m_scale

float Font::m_scale
private

Definition at line 55 of file Font.h.

Referenced by scale().


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