XaiJu
nicsure
nicsure

patreon


What I have to do.

One of the advantages of being a coder is that you can make a computer do anything you want it to, it just takes a little bit of effort. But damn, why isn't there a single app out there that can convert system fonts to bitmapped fonts? I mean sure there are a few that "claim" to do so, but they all suck at it.

Anyway, I should be OK for the larger fonts now I have some reasonably easy method to generate them.

What I have to do.

Comments

nice, I like much the PET-alike fonts in the Tidradio H3 firmwares :)

Joerg Jungermann

Thanks, but as I stated, it's solved now, I can convert any system font to bitmapped, plus I have fine level control of font dimensions, placement, either globally or for each individual character. and I can do this for any font size I like. When I do something I like to do it completely.

Marcus Dudley

marcus. i have done this in the past (with a python script) the text is commented in spanish, but if you need, i can modify this. at the moment, it generates .h for esp32 like this. // Fuente bitmap generada desde /System/Library/Fonts/Geneva.ttf // TamaΓ±o de rejilla: 10x10 // Caracteres incluidos: ASCII imprimibles #define FONT_WIDTH 10 #define FONT_HEIGHT 10 #define FONT_CHARS 95 #include // Tabla de caracteres (orden de los bitmaps) static const char font_chars[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~', ' ' }; // Bitmaps de caracteres static const uint16_t font_bitmaps[FONT_CHARS][FONT_HEIGHT] = { { // 'A' 0x020, 0x050, 0x050, 0x088, 0x0F8, 0x088, 0x088, 0x000, 0x000, 0x000, }, { // 'B' 0x088, 0x088, 0x0F0, 0x088,

Ramon Martinez Palomares

Nice :D Looks great. 🐈

Shay C@


More Creators