RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Font_Paint Special Characters

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» The Font Manager
» SWI Calls
» Font_Paint
» Flags
» Special Characters

Special Characters

Notes

Some control characters have special meaning.

Control Sequence Codes Meaning
9, dx_low, middle, high Move print position horizontally
11, dy_low, middle, high Move print position verically
17, colour Set font colour (+&80 for background)
18, background, foreground, offset See Font_SetFontColours
19, background, foreground, offset See ColourTrans_SetFontColours
21, comment_string, ctrl_terminated(any) ?
25, underline_pos, thickness Turn underline on/off
26, font_handle See Font_SetFont
27, ALIGN; a, b, c, d, e, f Full Font Transformation Matrix
28, ALIGN; a, b, c, d, e, f Font Transformation Matrix with 0 translation

Note: There are no spaces between control sequence fields. Spaces have been added above purely to make it easier to read.

With ctrl-codes 9 & 11, the print-position is given in millipoints.

With ctrl-code 25, position and thickness is given in 1/256^th^ of current font size. Position is sign extended, thickness is unsigned. Set thickness to 0 to turn off underlining.

With ctrl-codes 27 & 28, the code must be followed by 0-3 null bytes to word align the Font Transformation Matrix.

When using 16 or 32-bit characters, these take a slightly different form.

See also

  • Font_Paint
  • Font_Paint Block
  • Font_Paint Flags
  • Font_Paint Special Characters Parameters
  • Font_Paint String Forms
  • Font Background Blending
  • Font Transformation Matrix
Revised on October 24, 2009 22:50:34 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Font_Paint, Font_Paint Block, Font_Paint Flags, Font Background Blending, Font_Paint String Forms, Font_Paint Special Characters Parameters, Font_StringWidth

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys