FNTMetrics

Syntax

#include <revolution/fnt.h>

typedef struct
{
    u8  width;
    u8  height;
    u8  maxCharWidth;
    u8  ascent;
    u8  descent;
    s8  baselinePos;
    s8  leading;
    u8  cellWidth;
    u8  cellHeight;
    u16 texWidth;
    u16 texHeight;
} FNTMetrics;

Elements

width Font width (in texels). (The font width can be used as the standard for tabs and scaling.)
height Font height (in texels).
maxCharWidth The number of texels in the widest text character.
ascent The character ascent (number of texels above the base line).
descent The character descent (the number of texels below the base line).
baselinePos Baseline position (in texels).
leading Line spacing (in texels).
cellWidth Cell width (in texels). (A cell is the rectangular area surrounding a single character.)
cellHeight Cell height (in texels). (A cell is the rectangular area surrounding a single character.)
texWidth Texture image sheet width (in texels).
texHeight Texture image sheet height (in texels).

Description

This structure stores size information for fonts.

See Also

FNTGetMetrics

Revision History

2006/10/01 Initial version.


CONFIDENTIAL