flatmush / dingoo-sdk

Automatically exported from code.google.com/p/dingoo-sdk
2 stars 3 forks source link

Colorized Fonts #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the loaded fonts are bitmap fonts with transparency, some people
have shown interest (yefeng) in being able to colorize white fonts so we
should add a mechanism for this.

Original issue reported on code.google.com by Flatmush@googlemail.com on 23 Apr 2010 at 6:42

GoogleCodeExporter commented 9 years ago

Original comment by Flatmush@googlemail.com on 23 Apr 2010 at 6:43

GoogleCodeExporter commented 9 years ago
I guess our options are:
1. Make a new set of functions which accepts colors, for example 
gfx_font_print_color
(). Although that would mean duplicating all the font print functions.
2. Add a function gfx_font_set_color() / gfx_font_clear_color() which controls 
the 
color with the normal font functions. When doing clear, it should not apply any 
color.

Feel free to respond if anyone has a preference for any of the two different 
methods.

Original comment by hart...@gmail.com on 26 Apr 2010 at 5:49

GoogleCodeExporter commented 9 years ago
Option 2 in my comment above has been implemented in r192.

Original comment by hart...@gmail.com on 21 May 2010 at 10:20