/**************************************************************************
 *
 * FILE NAME:			bitmapDb.h
 * FILE DESCRIPTION:	Database of all bitmaps in the system
 *
 * FILE CREATION DATE:	24-07-2009
 *
 *==========================================================================
 *
 * Modification history:
 * --------------------
 * 01a,24jul09 erd written
 *
 ***************************************************************************/

#ifndef __BITMAP_DB_H_
#define __BITMAP_DB_H_

// ==========================================================================
// structure definition
// ==========================================================================

// This structure describes a single character's display information
typedef struct
{
	const uint_8 widthBits;					// width, in bits (or pixels), of the character
	const uint_16 offset;					// offset of the character's bitmap, in bytes, into the the FONT_INFO's data array
	
} FONT_CHAR_INFO;	

// Describes a single font
typedef struct
{
	const uint_8 			heightPages;	// height, in pages (8 pixels), of the font's characters
	const uint_8 			startChar;		// the first character in the font (e.g. in charInfo and data)
	const uint_8			spacePixels;	// number of pixels that a space character takes up
	const FONT_CHAR_INFO*	charInfo;		// pointer to array of char information
	const uint_8*			data;			// pointer to generated array of character visual representation
		
} FONT_INFO;	

#endif /* __BITMAP_DB_H_ */
