hrvach / espple

Apple 1 Emulator with wireless PAL RF Output
Other
212 stars 21 forks source link

I'm trying to replace the font, could you please explain the structure of signetics_video_rom.h #13

Open ghost opened 2 years ago

ghost commented 2 years ago

I'm trying to replace the font but I am having trouble working out how to convert a bitmap font such as:

https://github.com/idispatch/raster-fonts/blob/master/06x08_Terminal_Microsoft.png

into the format used in this file:

https://github.com/hrvach/espple/blob/master/user/signetics_video_rom.h

Am I right in understanding that somehow each pixels is replicated three times in the above file? That's what I thought but I looked for such a pattern in the data and could not find it.

Would you mind please suggesting an approach for converting a bitmap font into the required format, or explaining more about this format?

thanks!