FontGen
   Multilingual
   Grayscale
   Graphics support
   Rotation
   Cross Platform
   Compression
   Release notes
   Get it
  
Keil LCD extension
Display library
FAQ

 

FontGen tries to reduce the valuable code space on your microcontroller required for the font definition by implementing some kind of compression.

When vertical compact mode is selected, it removes the empty lines at the head and tail rows for each glyph by noting the number of lines it removed. Similarly it removes the empty columns for the horizontal compact mode (only for True Type fonts). This reduces the code space used significantly without any loss of information.

Compressed glyph:

		0x60, 0x00, 	/*  [ **       ]  */
		0x60, 0x00, 	/*  [ **       ]  */
		0x60, 0x00, 	/*  [ **       ]  */
		0x67, 0x00, 	/*  [ **  ***  ]  */
		0x7F, 0x80, 	/*  [ ******** ]  */
		0x71, 0x80, 	/*  [ ***   ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */

Uncompressed glyph:

		0x00, 0x00, 	/*  [          ]  */
		0x00, 0x00, 	/*  [          ]  */
		0x00, 0x00, 	/*  [          ]  */
		0x60, 0x00, 	/*  [ **       ]  */
		0x60, 0x00, 	/*  [ **       ]  */
		0x60, 0x00, 	/*  [ **       ]  */
		0x67, 0x00, 	/*  [ **  ***  ]  */
		0x7F, 0x80, 	/*  [ ******** ]  */
		0x71, 0x80, 	/*  [ ***   ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x61, 0x80, 	/*  [ **    ** ]  */
		0x00, 0x00, 	/*  [          ]  */
		0x00, 0x00, 	/*  [          ]  */
		0x00, 0x00, 	/*  [          ]  */
		0x00, 0x00, 	/*  [          ]  */
Copyright 2006-2015 - dreamsware - info@dreamsware.info