TEXTMETRICS Struct Reference

A structure to hold text metrics Ascent is the distance from the base line of the first line of text to the top of the "ink" of the fist line. More...

#include <mi32/textmetrics.h>

List of all members.

Public Member Functions

 TEXTMETRICS ()
void Clear ()

Public Attributes

int FirstLineAscent
int Height
int LastLineDescent
int MaxFontAscent
int MaxFontDescent
int UniformHeight
int Width

Detailed Description

A structure to hold text metrics Ascent is the distance from the base line of the first line of text to the top of the "ink" of the fist line.

Descent is distance from the last base line (assuming multiple lines) to the bottom of the descenders of the last line. Height is the distance between the top ascent and bottom descent. If you're interested in "tight" metrics, that is, only including the size of characters in the given string, use the FirstLineAscent, LastLineDescent and Height If you're interested height that would include room for ascenders and descenders even if the given string doesn't have any, use MaxFontAscent, MaxFontDescent, UniformHeight


Constructor & Destructor Documentation

TEXTMETRICS::TEXTMETRICS (  )  [inline]

Default constructor memsets the whole structure to 0 for you.


Member Function Documentation

void TEXTMETRICS::Clear (  )  [inline]

Member Data Documentation

Ascent of first line from base line.

Height of text.

Descent of last line from base line.

Max font ascent (designed).

Max font descent (designed).

Height based on MaxFontAscent/MaxFontDescent.

Width of text.


The documentation for this struct was generated from the following file:

Generated on Sun Oct 7 21:33:54 2012 for TNTsdk 2012 by  doxygen 1.6.1