2007-10-15

Woopsi Version 2 Ideas #2

Making font bitmaps is tedious. So tedious that I really don’t want to bother doing it, but there aren’t a lot of fonts in the right format around.

My solution to this is to draw on a huge existing pool of fonts, and write an Amiga font loader. Shouldn’t be too difficult, especially as the file format for the fonts is described in the Amiga developer documentation and header files.

Comments

Jeff on 2007-10-16 at 00:10 said:

The biggest problem I’ve found is finding documentation on what PALib expects from a font. (I’m in the process of reverse-engineering and reimplemengint PAGfx.exe for OSX)

Oh, and platforms like MacOS, Windows, Amiga, etc all assume that fonts can have descenders, bits that go “below the line” which I don’t believe the current NDS Homebrew support will handle.

ant on 2007-10-16 at 05:08 said:

Woopsi uses a completely custom font system already, so adding descenders shouldn’t be too much of a problem. The Amiga font spec also suggests that it supports simplistic kerning and variable space width, too.

ant on 2007-10-16 at 08:00 said:

The way I’ve implemented glyph drawing is to read each pixel from the font and, if the colour isn’t a user-specified background colour, the pixel gets written to the screen. Nowhere near as fast as a DMA copy, but it means I can have transparent backgrounds. Transparent backgrounds mean that any descenders won’t get overwritten by the text in the line below.

That’s the plan, anyway…

Most of this should be moot anyway, as my real goal is to support fixed-width bitmap fonts, which shouldn’t have descenders/kerning/variable space width. I’m avoiding AGFA fonts.

Jeff on 2007-10-16 at 08:47 said:

Sure, with the possible exception that descenders mean you revisit the same video RAM (ie, when drawing line 2, you will need to OR in the descender pixels from line 1).

sebakrau on 2007-10-17 at 20:40 said:

I’ve written font drawing routines for a microcontroller to draw custom fonts to a graphical LC-Display some time ago. I’ve had the same problems when designing fonts and symbols for the display. A tool which helped me a lot is LCD Icon Editor ( http://www.ramtex.dk/iconedit/iconedit.htm ). This way, the process of creating bitmap fonts is a lot easier than starting from scratch with photoshop.

Keep up the good work!!