Printing font with variable character width (exported from TTF)

pilo
By pilo in MIOS programming (C),
Hi everyone! I thought it might be a good idea to be able to print variable width font on GLCD. I wrote a simple example using this (see pictures and code in vfw.tar.gz). I don't think it was done before with MIOS? (I made a quick search). The font bitmap are exported from TTF file using a very quick (and ugly) C program based on Freetype (it might be Linux only... Freetype was an easy option for me, and a good font rasterizer). It takes as input the TTF file and a size, which is then exported as a .c file, which can then be included inside MIOS app (one file per font and size).   font.c   vfw.tar.gz
  • 2 replies