I am writing a low level C app, and I’m planning on using an array to store my fonts.
The problem is, the font I’d like to use is in TrueType format. How shall I:
-
Convert TTF to a large sized, B&W, bitmap
font without any kind of AA (not strictly programming
related); -
Parse the B&W bitmap font into a C byte array.
What format should I use for the bitmap? Should be simple enough that me, a beginner programmer with little over a year of experience can write a parser to store it in said array.
I don’t want to use external libraries, and I’d like to keep C Std. Lib. usage to a minimum. It’s for a college project and I want to write everything myself.
It’s not the most professional or cleanest, but here’s what I’d do in your situation:
font_widthpixels wide andfont_height*96pixels tall.<space> <newline> ! <newline> " <newline> # <newline>… (i.e. all the ASCII glyphs).uint8_t [96][font_height][font_width].