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

 

FontGen supports both monochrome and different levels of grays for font and image defition file generation.

For monochrome operation, you have 3 different options for "black-decision". On the PC, fonts get their good looking using the dithering, which several levels of grays around the pure black to smooth the look. Since we have 1-bit color depth for monochrome, we may come up with a font which is not that good-looking. To be able to let you create the best possible font, fontgen lets you to choose where black actually starts at.

Legacy black&white
A pixel is selected as black only if it is pure black. All grays are considered as white.

[ **       ]
[ **       ]
[ **       ]
[ **  *    ]
[ ** ****  ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]

1-bit grayscale
A pixel is selected as black if its grayness is more close to black compared to white.

[ **       ]
[ **       ]
[ **       ]
[ **  **   ]
[ ** ****  ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]

1-bit custom
You have the option to select where black actually starts at.

[ **       ]
[ **       ]
[ **       ]
[ **  ***  ]
[ ******** ]
[ ***   ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]
[ **    ** ]

For the grayscale operation, you can select the color depth of your font and image definition. If your LCD controller supports, say 2 bits for each pixel; you should select either "2-bit grayscale" or "2-bit custom" color depth options on FontGen.

For each color depth, you have two options. You either can let FontGen to select the color boundaries for the conversion, or you can set the boundaries.

FontGen uses the "N" most significant bits of each pixel for its grayscale decision while producing font definition file for "N" color-depth. This is shown in the table below. In the table each row represents the color of the pixels on the PC. FontGen takes the value of the green bits while generating font/image definition.

Color
Depth
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
1
X
X
X
X
X
X
X
2
X
X
X
X
X
X
3
X
X
X
X
X
4
X
X
X
X
5
X
X
X
6
X
X
7
X
8


If you're not satisfied with the FontGen's boundary selection, you can set the ranges for each pixel-color for color depths 1, 2 and 3 (with the custom color depths)

You can verify these using the trial version.

 

Grayscale operation performs better when the font edge smoothing is enabled from "Desktop Properties" -> "Appearance" -> "Effects".

Copyright 2006-2015 - dreamsware - info@dreamsware.info