[Gambas-bugtracker] Bug #2670: Paint.DrawText / Paint.Text Allignment difference

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun Dec 25 02:27:00 CET 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2670&from=L21haW4-

Comment #3 by Bruce STEERS:

Okay , here is a video..

In the clip....
I run the application with the ShadowText file using Paint.DrawText to paint the shadow.
With no border the black text I draw is center as should be but the Labels own White text is aligned left.

Then i set the labels Border = Border.Plain
Then the white text is centered okay.
Then i turn off the border again, back to misaligned text.

Then i change the Black texts command in ShadowLabel.class Paint.DrawText to be Paint.Text and Paint.Stroke instead and the text is then aligned correctly.

So i have a workaround to use Paint.Stroke anyway but seemed like a bug. Sorry it's possibly expected behaviour, only you would know.
Happy Yule tide good fellow :)

----------------------------------------------------------------------------

Attachment: simplescreenrecorder-2022-12-25_01.19.04.mkv

Bruce STEERS changed the state of the bug to: Accepted.




More information about the Bugtracker mailing list