[TriEmbed] need 64x64 and smaller font bitmap generator
Jon Wolfe
jonjwolfe at yahoo.com
Mon Mar 17 21:31:36 CDT 2014
Here are some links for programs and code libraries I've tried.
http://www.mugui.de/
https://code.google.com/p/glcd-arduino/downloads/list?can=1&q=
Sorry I don't remember which had the best results.
________________________________
From: Jon Wolfe <jonjwolfe at yahoo.com>
To: Pete Soper <pete at soper.us>; "triembed at triembed.org" <triembed at triembed.org>
Sent: Monday, March 17, 2014 5:55 PM
Subject: Re: [TriEmbed] need 64x64 and smaller font bitmap generator
I don't have the resources in front of me. But I too have spent time looking for things like this. A lot of the font data can be specific to the library or even a specific LCD memory layout (some are organized horizontally, some are vertically).
A couple tricks that I've found useful:
look for existing projects using the same LCD/library, they might have a font in there you can borrow.
or, when I got desparate, I just made my own. GCC for AVR chips supports the binary literal:
255 => 0xFF => 0b11111111
That can be helpful to create your own font if your memory layout is conducive to it. It's a little labor intensive, but it works.
I'll look for the LCD font generator tools that I downloaded not long ago, but I never had great luck with them.
Also, dig deep into the driver chip's datasheet. It may have [poorly advertised] built-in fonts that you can access.
________________________________
From: Pete Soper <pete at soper.us>
To: triembed at triembed.org
Sent: Monday, March 17, 2014 5:33 PM
Subject: [TriEmbed] need 64x64 and smaller font bitmap generator
I'd like to display two digit numbers on a 128x64 graphic display (i.e.
two 64x64 pixel digits) and wonder if somebody has made a site that
generates C declarations for bitmap fonts like this on the fly?
For example, with Stanley Huang's MicroLCD library code there is an
inline declaration of a 16x24 font like the one at the end of this
message. I guess I'm really just looking for a source for a font that
could be scaled (and not look terrible when scaled: notice this 16x24
font wouldn't scale to 64x64). But I have no idea what resources exist
and hope somebody on this list does. My idea of nirvana would be a web
site where you pick an X and Y size, pick a font that scales to that
size and get a C or C++ declaration for some alphabet that can be an
index into the array of bit maps.
-Pete
// fonts data
const PROGMEM
unsigned char digits16x24[][48] = {
{0x00,0x00,0x00,0xF0,0xFF,0x0F,0xFC,0xFF,0x3F,0xFE,
0xFF,0x7F,0xFE,0xFF,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0x07,0x00,0xE0,0x07,0x00,0xE0,0x07,0x00,0xE0,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFF,0x7F,0xFE,0
xFF,0x7F,0xFC,0xFF,0x3F,0xF0,0xFF,
0x0F},/*"0",0*/
_______________________________________________
Triangle, NC Embedded Computing mailing list
TriEmbed at triembed.org
http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
_______________________________________________
Triangle, NC Embedded Computing mailing list
TriEmbed at triembed.org
http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20140317/26125e2d/attachment.htm>
More information about the TriEmbed
mailing list