I'm working on a cool clock display using the TVout library. So far it's going pretty good with the built-in fonts.
I mocked up what I want the interface to look like. Eventually it'll end up on a small 4:3 5" CRT.
Something like this...
The problem is, there's only a few fonts that come with the library. The font for the time needs to be bigger. The largest font in the library is 8x8. What I really need is probably 16x16, or maybe bigger. I've even lowered the resolution to 90x90. (Any lower and the AM/PM in the time wraps to the next line.)
There's a small blurb over at the TVout website that says you make fonts like this:
Fixed width fonts: The first 3 bytes must contain the width, height, and first defined character followed by the font definitions. For example the following is the header and first 2 characters from the 4x6 font definition.
4,6,32,
//space
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
//!
0b01000000,
0b01000000,
0b01000000,
0b00000000,
0b01000000,
0b00000000,There must be a full definition for each character; in this case the width of 4 fits into a single byte and the height of 6 means there needs to 6 bytes per character. Since 32 is the first printing character for this font set anything before character 32 will be ignored.
Variable width fonts: These fonts are defined by having a width of 0, height, and first defined character. An example of a variable width font with a height of 6 and the first printing character being a space.
0,6,32,
//space
2,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
//!
3,
0b01000000,
0b01000000,
0b01000000,
0b00000000,
0b01000000,
0b00000000,
But it's not making any sense to me. How do you generate the "0b00000000, 0b00000000, 0b00000000, etc...." for each character?
Does anyone know how to generate the "code"?