Is there a way to do all of the Blt FX on a font, including things like alpha blending?
Way to do alpha blend on bitmap fonts
Once the font is drawn to a surface you can then do whatever you want to that surface.
To overlay a semi-transparent font onto my background image would require me to draw the text into another suface first over a solid color background then figure out the area of the text and draw that onto my final screen with that solid color background set as the transparent color. I was looking to get around the extra steps. I'm betting under the covers the code that draws the text itself is just blasting out bitmaps so it seems like it should be able to go through the same FX calles that the other Blt routines do. That would provide for text that is semi-transparent or it would allow be to build my font in white and then at drawtext time set the color to something else.
Johan has mentioned enhancing DrawText to handle this in the next version of GapiDraw on this forum somwhere. But he'll have to confirm if that's still going to happen.
Hi,
Back from another workshop...
Yes, DrawText in the next version will support all Blit Effects available in BltFast (for both bitmapped and system font). System font drawing will also be cache optimized.
/Johan
Back from another workshop...
Yes, DrawText in the next version will support all Blit Effects available in BltFast (for both bitmapped and system font). System font drawing will also be cache optimized.
/Johan