Font Source Selection

Microchip Graphics Library

Microchip Graphics Library
Font Source Selection

Font data can be placed in multiple locations. Set these options in the GraphicsConfig.h header file. 

- USE_FONT_FLASH - Font in internal flash memory support. When placed in internal flash memory, it can further classified to be placed in program flash by adding USE_GFX_FONT_IN_PROGRAM_SECTION

- USE_FONT_EXTERNAL - Font in external memory support. Use this for fonts located in external memory like SPI Flash or external memory mapped to Extended Data Space.

Macros
Name 
Description 
Font data can be placed in two locations. One is in FLASH memory and the other is from external memory. Definining one or both enables the support for fonts located in internal flash and external memory. Define this in GraphicsConfig.h
  • USE_FONT_FLASH - Font in internal flash memory support.
  • USE_FONT_EXTERNAL - Font in external memory support (including external memory mapped to EDS).

 

Font data can be placed in two locations. One is in FLASH memory and the other is from external memory. Definining one or both enables the support for fonts located in internal flash and external memory. Define this in GraphicsConfig.h
  • USE_FONT_FLASH - Font in internal flash memory support.
  • USE_FONT_EXTERNAL - Font in external memory support (including external memory mapped to EDS).

 

For XC16 or C30 builds only: When placing fonts in internal data memory, there is a 32K limit for data space. The total data should not exceed 32K. When this is unavoidable, the macro USE_GFX_FONT_IN_PROGRAM_SECTION will relocate the font in program space. This will remove the 32K restriction but at the expense of slower access. Define this in GraphicsConfig.h to enable the font to be placed in program space. 
Links
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved