[Gambas-user] How to color a font when printing

Rolf-Werner Eilert rwe-sse at osnanet.de
Thu Sep 10 11:08:00 CEST 2020


Am 10.09.20 um 09:48 schrieb Rolf-Werner Eilert:
> Somehow I haven't quite understood how Paint.DrawText(...) can be made 
> drawing a colored font.
> 
> Actually, I figured out how to paint colored rectangles 
> (Paint.FillRect()), but I failed to find a way for fonts.
> 
> My last trial was
> 
> Paint.Brush = Paint.Color(theFontColor)
> Paint.DrawText(...)
> 
> But text remains black.
> 
> Could you give me a short hint?
> 
> Regards
> Rolf
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 


I just found that this failed due to an error in coding, generally it 
does run as expected.

Sorry for the noise!

Rolf


More information about the User mailing list