iOS Question b4i DrawTextRotate

miquelr

Member
Licensed User
Longtime User
I need to write a text over each slice of a pie chart. I use canvas drawtextrotate but I need rotate the FONT on the 2nd and 3th quadrant because the text appears flipped horizontally. It is possible?
 

klaus

Expert
Licensed User
Longtime User
@Erel,
From what I understand, miquelr wants the texts on the left side not upside down.

@miquelr
The behaviour in your screenshot is normal.

I'm afraid that you need to modify your code, changing the angle and the alignment depending on the orientation.
 
Upvote 0

miquelr

Member
Licensed User
Longtime User

Klaus, as you say that is just what I want; the texts on the left side not upside down. With B4A, when changing the alignment depending of the angle, the text is showing as I want, but not with b4i. I am sure than I made a mistake to porting b4a to b4i. I'll review it
Many thanks
Erel: Great, great work this B4I. Congratulations.
 
Upvote 0

db0070

Active Member
Licensed User
Longtime User
Yes, could be interesting to me also, as I am also looking at rotating text
Could you post your code snippet - if you can remember it?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…