AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     Font handle (if applicable)
     R1 =     pointer to string
     R2 =     flags
     R3 =     x
     R4 =     y
     R5 =     pointer to block (if applicable)
     R6 =     pointer to transformation matrix (if applicable)
     R7 =     Length (if applicable)

This SWI paints a string to the screen using the currently selected font, or a specific font if flags indicate so. Any VDU 'origin' previously specified is ignored and absolute co-ordinates are assumed.

Note: Underline and rubout do not work unless transformed x-axis is parallel (not anti-parallel) to output x-axis. (Anti-parallel being parallel, but in the opposite direction to the original).

See PRM 3, page 429.
Font_Paint block
Offset     Contents

0     additional x offset for spaces
4     additional y offset for spaces
8     additional x offset for each letter
12     additional y offset for each letter
16     x coordinate for bottom left of rubout box (inclusive)
20     y coordinate for bottom left of rubout box (inclusive)
24     x coordinate for top right of rubout box (exclusive)
28     y coordinate for top right of rubout box (exclusive)

These values are in millipoints (bit 4 of R2 must be clear)

[sh-index] Back to list of manuals