I am making a simple little application to send text to a 1-bit per pixel LED matrix.
I know this has been done at least 1000 times, with all the LED signs and software out there, but there really isnt a good explanation on HOW its done.
The question is this: How would you take a simple font/typeface, any installed font, any size, italics, etc.. and convert it into a bitmap to be displayed on a pixel array?
With B4A, or any other language, its simple to make a font or convert a font by hand into a bitmap pixel format, and just use a lookup table and if the ASCII character is found, then copy the bitmap of that character into the memory to be written to the LED matrix. The problem with this approach is, sizing and spacing cannot be proportional. it has to be fixed. Then of course, a bitmap of every single character of the font, upper and lower case, plus numbers and symbols would have to be made. And for each and every font, AND size. Seems like a nightmare scenario.
But with different justify alignments, sizes, etc it just doesnt seem that everyone is doing it this way. I think fonts are being rendered into bitmaps somehow.
I've seen software that has a "simulated" LED matrix window on the screen, and anything you type, pick a font and size, gets rendered onto that simulation screen. How do they do that? I assume the term is rasterization.
Does anyone know how to do this in B4a?
I know this has been done at least 1000 times, with all the LED signs and software out there, but there really isnt a good explanation on HOW its done.
The question is this: How would you take a simple font/typeface, any installed font, any size, italics, etc.. and convert it into a bitmap to be displayed on a pixel array?
With B4A, or any other language, its simple to make a font or convert a font by hand into a bitmap pixel format, and just use a lookup table and if the ASCII character is found, then copy the bitmap of that character into the memory to be written to the LED matrix. The problem with this approach is, sizing and spacing cannot be proportional. it has to be fixed. Then of course, a bitmap of every single character of the font, upper and lower case, plus numbers and symbols would have to be made. And for each and every font, AND size. Seems like a nightmare scenario.
But with different justify alignments, sizes, etc it just doesnt seem that everyone is doing it this way. I think fonts are being rendered into bitmaps somehow.
I've seen software that has a "simulated" LED matrix window on the screen, and anything you type, pick a font and size, gets rendered onto that simulation screen. How do they do that? I assume the term is rasterization.
Does anyone know how to do this in B4a?
Last edited: