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>
Public Member Functions | |
| TEXTMETRICS () | |
| void | Clear () |
Public Attributes | |
| int | FirstLineAscent |
| int | Height |
| int | LastLineDescent |
| int | MaxFontAscent |
| int | MaxFontDescent |
| int | UniformHeight |
| int | Width |
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
| TEXTMETRICS::TEXTMETRICS | ( | ) | [inline] |
Default constructor memsets the whole structure to 0 for you.
| void TEXTMETRICS::Clear | ( | ) | [inline] |
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.
1.6.1