Reply To: Text rotation in labels

#4774
Bruce Walker
Participant

Here is some sample code I find works. It also accounts for view rotation. ‘txt_font’, ‘txt_size’ and ‘txt’ are parameters:

DEFINE STYLE 'txt1Style' txt_font, txt_size, 5, 0

!View rotation angle
rrr = REQUEST ("View_Rotangle", "", angleViewRot)
totRot = (SYMB_ROTANGLE + angleViewRot)
IF totRot > 360 THEN totRot = totRot - 360

STYLE txt1Style

TEXT2 0, 0, txt

www.brucepwalker.com
https://www.mindmeister.com/65450406

AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb