Data Fields
tFont Struct Reference

This structure describes a font used for drawing text onto the screen. More...

#include <grlib.h>

Data Fields

unsigned char ucFormat
unsigned char ucMaxWidth
unsigned char ucHeight
unsigned char ucBaseline
unsigned short pusOffset [96]
 The offset within pucData to the data for each character in the font.
const unsigned char * pucData
 A pointer to the data for the font.

Detailed Description

This structure describes a font used for drawing text onto the screen.


Field Documentation

unsigned char tFont::ucFormat

The format of the font. Can be one of FONT_FMT_UNCOMPRESSED or FONT_FMT_PIXEL_RLE.

Referenced by GrStringDraw(), and GrStringWidthGet().

unsigned char tFont::ucMaxWidth

The maximum width of a character; this is the width of the widest character in the font, though any individual character may be narrower than this width.

unsigned char tFont::ucHeight

The height of the character cell; this may be taller than the font data for the characters (to provide inter-line spacing).

unsigned char tFont::ucBaseline

The offset between the top of the character cell and the baseline of the glyph. The baseline is the bottom row of a capital letter, below which only the descenders of the lower case letters occur.

unsigned short tFont::pusOffset[96]

The offset within pucData to the data for each character in the font.

Referenced by GrStringDraw(), and GrStringWidthGet().

const unsigned char* tFont::pucData

A pointer to the data for the font.

Referenced by GrStringDraw(), and GrStringWidthGet().


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

Copyright 2012, Texas Instruments Incorporated