h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » [[Wimp_TextOp|Wimp_TextOp]] h6(((. » Wimp_TextOp (Plot Text) h2. Wimp_TextOp (Plot Text) h5. (Reason Code 2) |_<^. Entry |_\2<^. | | |/6<^. R0 |\2<^. 2 + bits (See below) | |<^. Bits |<^. | |<^. 28 |<^. Vertically centre at the Y co-ordinate | |<^. 29 |<^. Co-ords are relative to the window being redrawn | |<^. 30 |<^. Vertical adjust, so baseline of characters is at same Y co-ordinate as system font | |<^. 31 |<^. Right justify (as per R4, R5) | |<^. R1 |\2<^. Pointer to *null-terminated* string | |<^. R2 |\2<^. -1 || |<^. R3 |\2<^. -1 | |<^. R4 |\2<^. X co-ordinate | |<^. R5 |\2<^. Y co-ordinate | |_<^. Exit |_<^. | |<^. R0 |<^. String width in OS units | |<^. R1 |<^. Preserved | |<^. R2 |<^. Preserved | h4. Use With a reason code of 2, this call plots text on screen using the current desktop font. h4. Notes Bits 30-28 are used to specify the justification of the text. This call should be used from within a redraw loop. Because an outline font may be used, the background colour of the font must be specified, so that the anti-aliasing colours can be set-up. *BUG:* The PRMs incorrectly describe the string as "ctrl-terminated". This is not true when using System Font, so the string must *always* be null-terminated. h4. See also * [[Wimp_SetFontColours|Wimp_SetFontColours]] * [[Wimp_TextOp|Wimp_TextOp]] * [[Wimp_TextOp 0|Wimp_TextOp 0]] * [[Wimp_TextOp 1|Wimp_TextOp 1]] * [[Wimp_TextOp 3|Wimp_TextOp 3]] * [[Wimp_TextOp 4|Wimp_TextOp 4]]