Logo Search packages:      
Sourcecode: pango-graphite version File versions  Download package

void gr::FreetypeFont::getFontMetrics ( float *  pAscent = NULL,
float *  pDescent = NULL,
float *  pEmSquare = NULL 
) [virtual, inherited]

Returns the basic metrics of the font. It corresponds to the current GrGraphics::get_FontAscent, get_FontDescent and GetFontEmSquare methods.

Parameters:
pAscent pointer to hold font ascent
pDescent pointer to hold font descent
pEmSquare pointer to hold font EM square

Definition at line 129 of file FreetypeFont.cpp.

Referenced by gr::FreetypeFont::ascent(), gr::FreetypeFont::descent(), and gr::FreetypeFont::height().

{
  if (pAscent) *pAscent = m_ascent; 
  if (pDescent) *pDescent = m_descent;
  if (pEmSquare) *pEmSquare = m_emSquare; 
}


Generated by  Doxygen 1.6.0   Back to index