pilo Posted September 12, 2015 Report Share Posted September 12, 2015 (edited) 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 Edited September 12, 2015 by pilo Quote Link to comment Share on other sites More sharing options...
tago Posted September 9, 2016 Report Share Posted September 9, 2016 Hi @pilo intresting stuff. It looks like you can print multiple font faces and sizes on the same dispaly. Is this already implemented in MIOS? Quote Link to comment Share on other sites More sharing options...
pilo Posted September 11, 2016 Author Report Share Posted September 11, 2016 Hi @tago Yes, you can print text using different font faces and sizes. It's not part of MIOS, but works by using bitmap drawing MIOS functions. It's still a bitmap font system, TTF have to be exported to bitmap, so it takes a little bit of memory for each font faces and size. Also it's not a full featured font system, for example it doesn't support kerning (could be added, but will take even more memory). If you want I could set up a better example (the one I posted was just a quick test). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.