#129705 - fogzot - Fri May 25, 2007 12:48 pm
I wanted something quite simple to start hacking, just to see if I had grasped the tutorials and 8-bit font rendering using the small banks seemed just right. The result is a little library that render "paletted", variable width fonts (generated using the included ffontmaker program, that works on Linux/Mono or Windows) applying some very basic effects like color remapping, background color and transparent foreground (I have a problem here, see below.) This is just a first try but I'd like to add some features (mainly text formatting and scrolling) in the future. Anyway, source code is available under the LGPL (GPL for the ffontmaker program) from here:
http://people.initd.org/fog/ffont-0.1.tar.gz
Now to my problem. There is any way, when using any 2D mode and BG_BMP8_256x256, to tell the video system that a color is "transparent" and the underlying background should show through? I am a bit confused here because I don't understand if, for example, it is possible to have TWO BG_BMP8_256x256 backgrounds with the lower one showing through holes in the top one. Any example out there?
http://people.initd.org/fog/ffont-0.1.tar.gz
Now to my problem. There is any way, when using any 2D mode and BG_BMP8_256x256, to tell the video system that a color is "transparent" and the underlying background should show through? I am a bit confused here because I don't understand if, for example, it is possible to have TWO BG_BMP8_256x256 backgrounds with the lower one showing through holes in the top one. Any example out there?