if( dText->isMirrored then
; if do not care some special degrees, like 90.287
; it will be easy
caseq( round( dSym->rotation / 45.0 )
( ( 1 2 4 7 )
fText_rot = round( dSym->rotation / 45.0 ) * 45.0+180.0
)
( ( 0 3 5 6 )
fText_rot = round( dSym->rotation / 45.0 ) * 45.0
)
);end case
else
caseq( round( dSym->rotation / 45.0 )
( ( 0 1 2 7 )
fText_rot = round( dSym->rotation / 45.0 ) * 45.0
)
( ( 3 4 5 6 )
fText_rot = round( dSym->rotation / 45.0 ) * 45.0+180.0
)
);end case
);end if