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

Font_Paint Special Characters

FontManager
» SWI Calls
» Font_Paint
» Font_Paint Special Characters

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). Use 19… instead
18, background, foreground, offset See Font_SetFontColours. Use 19… instead
19, bg_R, bg_G, bg_B, fg_R, fg_G, fg_B, offset See ColourTrans_SetFontColours
21, comment_string, ctrl_terminated (any) Skip and ignore the comment string
25, underline_pos, thickness Turn underline on/off
26, font_handle See Font_SetFont
27, ALIGN; a, b, c, d Partial Font Transformation Matrix (with no translation)
28, ALIGN; a, b, c, d, e, f Full Font Transformation Matrix (with translation)

Notes

There are no spaces between control sequence fields. (Spaces have been added to the examples above to make them easier to read.)

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

With 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 codes 27 and 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 String Forms
  • Font Background Blending
  • Font Transformation Matrix
Revised on November 25, 2018 11:59:25 by Edward Nokes (1656)? (86.4.14.10)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: Font Background Blending, Font String Forms, Font_Paint, Font_Paint Block, Font_StringWidth, Font_Paint Flags, Font_Paint Special Characters Parameters

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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