TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Fields
tFontEx Struct Reference

#include <grlib.h>

Data Fields

uint8_t ucFormat
 
uint8_t ucMaxWidth
 
uint8_t ucHeight
 
uint8_t ucBaseline
 
uint8_t ucFirst
 
uint8_t ucLast
 
const uint16_t * pusOffset
 
const uint8_t * pucData
 A pointer to the data for the font. More...
 

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

uint8_t tFontEx::ucFormat

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

uint8_t 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.

uint8_t tFontEx::ucHeight

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

uint8_t 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.

uint8_t tFontEx::ucFirst

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

uint8_t tFontEx::ucLast

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

const uint16_t* tFontEx::pusOffset

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

const uint8_t* tFontEx::pucData

A pointer to the data for the font.


The documentation for this struct was generated from the following file:
Copyright 2016, Texas Instruments Incorporated