Data Fields
tFontEx Struct Reference

#include <grlib.h>

Data Fields

unsigned char ucFormat
unsigned char ucMaxWidth
unsigned char ucHeight
unsigned char ucBaseline
unsigned char ucFirst
unsigned char ucLast
const unsigned short * pusOffset
const unsigned char * pucData
 A pointer to the data for the font.

Detailed Description

This is a newer version of the structure which describes a font used for drawing text onto the screen. This variant allows a font to contain an arbitrary, contiguous block of codepoints from the 256 basic characters in an ISO8859-n font and allows support for accented characters in Western European languages and any left-to-right typeface supported by an ISO8859 variant. Fonts encoded in this format may be used interchangeably with the original fonts merely by casting the structure pointer when calling any function or macro which expects a font pointer as a parameter.


Field Documentation

unsigned char tFontEx::ucFormat

The format of the font. Can be one of FONT_FMT_EX_UNCOMPRESSED or FONT_FMT_EX_PIXEL_RLE.

unsigned char tFontEx::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 tFontEx::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 tFontEx::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 char tFontEx::ucFirst

The codepoint number representing the first character encoded in the font.

Referenced by GrStringDraw(), and GrStringWidthGet().

unsigned char tFontEx::ucLast

The codepoint number representing the last character encoded in the font.

Referenced by GrStringDraw(), and GrStringWidthGet().

const unsigned short* tFontEx::pusOffset

A pointer to a table containing the offset within pucData to the data for each character in the font.

Referenced by GrStringDraw(), and GrStringWidthGet().

const unsigned char* tFontEx::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