Unicode Fonts and Symbols as GLCD C-source code

Random Unicode Bitmap Characters

C-Source formats: GLCD B&W, 2,4,8 bpp Alpha level Anti-Alias, and 4,8,16,24,32 bpp Color.

Create C-source code pixel Unicode fonts directly.
Convert pictures and images to C-source code symbols.

Convert vector fonts to C-source code raster fonts



How the C-source C Format is organized

The glyph symbols and the Unicode code-points are stored in separate files and bound together by a master file, so each font consists of 3 files:

  • Name.c is a C-source module for compilation. It has the data definitions and includes the other 2 files.
  • Name.cp a C-source list of the code-points in the font.
  • Name.sym C-source data for all the glyph symbols in the font.

The Name of the files is the same as the name of the font so it has to be a valid C-source code name.

Here is a small test font with one and greek alpha and betha:

Test font with one and greek alpha and betha

The hexadecimal numbers above the symbols are Unicode code-points.

The code-point list starts with the number of segments in the list and the default character to be used if a character is not in the font.

After that is a number of segments with consecutive code-points, each segment has 3 parameters the first code-point, the last code-point, and the symbol number for the first code-point in this segment:

Code-point list for test font with one and greek alpha and betha

The symbol list starts with a color type identifier for grey symbols and the X and Y size for each symbol. After that follows the glyph data bytes starting in the upper left corner of the symbol:

Symbol list for test font with one and greek alpha and betha

The highlighting shows the correspondance between the code-points and the symbols.



C-source code portability

1-bit B&W C Source code for one character from IconEdit

Save fonts, symbols, and groups of symbols in a general human-readable C-source code format:

  • All RAMTEX Color and B&W display controller driver libraries support the same basic symbol and font C-source code format. This makes fonts and symbols portable across display controller types and target hardware.
  • B&W (two-color) symbols are compatible with both B&W and Color display driver libraries.
  • Grey-level symbols and anti-aliased fonts are compatible with Color display driver libraries.
  • RGB Color symbols are compatible with RGB Color libraries. IconEdit can convert the symbols to grey for use with Grey-level libraries.


Recommended C-source code for Fonts

Black and white gives the smallest ROM footprint.

Choice of black and white C-source code bitmap font

All pixel data are stored as bytes for maximum portability.

Black and white C-source code bitmap font character

If the development system requires it all unsigned values can have an U suffix.

C-source code pixel font with capital U suffix

Black and white C-code character with capital U suffix for raster font

If you prefer white characters on black background pixel data can be inverted.

C-source code pixel font with white on black

Black and white C-source code character with white on black from pixel font

Two bit intensity level anti-alias gives a good compromise between ROM size and character look.

Choice of 2-bit intensity level C-source code pixel font

Data is stored as 4 pixels per byte.

2-bit anti alias intensity level C-code character from pixel font

If you prefer white characters on black background pixel data can be inverted.

C-source code bitmap font with white on black alpha value anti-alias

C-source code bitmap character with white on black alpha value anti-alias from raster font



Convert fonts and images to C-source code Fonts and Symbols as C-source code.

ROM Optimized Characters and Images Other Color Modes for Images and Fonts.

IconEdit font and symbol editor home IconEdit font and symbol editor home

Download the zip file for IconEdit Go to download of the IconEdit zip file.