iOS Question b4i DrawTextRotate

miquelr

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

miquelr

Member
Licensed 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.
 

db0070

Active Member
Licensed 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?
 
Top