Font Type Selection

Microchip Graphics Library

Microchip Graphics Library
Font Type Selection

This compile option selects if the support for unicode fonts, unsigned char or the default signed char type fonts. 

 

There are three types of font (characters) that can be used in the Graphics Library. This gives the user the option to implement multi-language application or use the default signed char type. 

 

Define in GraphicsConfig.h 
XCHAR type 
Description 
#define XCHAR unsigned short 
Enable support for multi-byte fonts such as Unicode fonts. 
#define XCHAR unsigned char 
Enable support for character range of 0-255. 
none of the two are defined 
#define XCHAR char 
Character range is set to 0-127. 

 

Note: Only one of the two or none at all are defined in GraphicsConfig.h. 

- #define USE_MULTIBYTECHAR 

- #define USE_UNSIGNED_XCHAR 

- when none are defined, XCHAR defaults to type char. 

 

See XCHAR for details.

Macros
Name 
Description 
To enable support for unicode fonts, USE_MULTIBYTECHAR must be defined. This sets the XCHAR definition (0-2^16 range). See XCHAR for details. Define this in GraphicsConfig.h 
To enable support for unsigned characters data type for fonts, USE_UNSIGNED_XCHAR must be defined. This sets the XCHAR definition (0-255 range). See XCHAR for details. Define this in GraphicsConfig.h 
Links
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved