# TEXT

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
TEXT x, y, string$ [,alignment$] [, font] [, scale] [, c] [, bc]

Description:
Displays a string on the VGA monitor starting at 'x' and 'y'. ‘string$’ is the string to be displayed.
Numeric data should be converted to a string and formatted using the Str$() function.
' alignment$' is a string expression or string variable consisting of 0, 1 or 2 letters where the first letter is the horizontal alignment around 'x' and can be L, C or R for LEFT, CENTER, RIGHT and the second letter is the vertical alignment around 'y' and can be T, M or B for TOP, MIDDLE, BOTTOM.
The default alignment is left/top.

On the CMM2, a third letter can be used in the alignment string to indicate the rotation of the text. This can be 'N' for normal orientation, 'V' for vertical text with each character under the previous running from top to bottom, 'I' the text will be inverted (ie, upside down), 'U' the text will be rotated counter clockwise by 90º and 'D' the text will be rotated clockwise by 90º 'font' and 'scale' are optional and default to that set by the FONT command.
'c' is the drawing colour and 'bc' is the background colour.
They are optional and default to the current foreground and background colours.

CLS
TEXT 200,100,"Colour Maximite","CM",5,1,RGB(RED)
TEXT 100,200,"Colour Maximite","CMU",5,1,RGB(GREEN)
TEXT 200,300,"Colour Maximite","CMI",5,1,RGB(BLUE)
TEXT 300,200,"Colour Maximite","CMD",5,1,RGB(CYAN)

Last edited: 30 September, 2020