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?
 

miquelr

Member
Licensed User
Longtime User
Can you post a screenshot of this?
OK
IMG_1402.PNG
 
Upvote 0

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
@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.

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
Top