Graphics Function: Returns the current orientation of the font text output by OUTGTEXT.
Module: USE DFLIB
Syntax
Results:
The result is of type INTEGER(4). It is the current orientation of the font text output in tenths of degrees. Horizontal is 0°, and angles increase counterclockwise so that 900 tenths of degrees (90°) is straight up, 1800 tenths of degrees (180°) is upside-down and left, 2700 tenths of degrees (270°) is straight down, and so forth.
The orientation for text output with OUTGTEXT is set with SETGTEXTROTATION.
Compatibility
STANDARD GRAPHICS QUICKWIN GRAPHICS LIB
See Also: OUTGTEXT, SETFONT, SETGTEXTROTATION
Example
! Build as QuickWin or Standard Graphics
USE DFLIB
INTEGER ang
REAL rang
ang = GETGTEXTROTATION( )
rang = FLOAT(ang)/10.0
WRITE(*,*) "Text tilt in degrees is: ", rang
END