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 String Forms

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

String Forms

Notes

Font_Paint and Font_ScanString now accept strings in 8, 16 or 32-bit forms. This is invoked by bits 12 & 13 in the flags in R2.

All other Font SWIs only accept 8-bit strings.

A 16-bit string must be half-word aligned, and consists of a number of 16-bit halfwords. A 32-bit string must be word aligned, and consists of a number of 32-bit words.

Example

Below is how the string “Hello” is represented in 8, 16 and 32-bit string form.

String form Data
8-bit 48 65 6C 6C 6F 00
16-bit 0048 0065 006C 006C 006F 0000
32-bit 00000048 00000065 0000006C 0000006C 0000006F 00000000

This allows access to characters outside the first 256. Control codes work as before, but have to be introduced by a character of the appropriate width.

The parameters of control sequences are handled differently in 16 and 32-bit modes. More information is available on font’s encoding.

Regardless of the setting of the 16/32-bit bits, string lengths continue to be in bytes (such as R7 on entry to Font_Paint).

See also

  • Ctrl-Characters
  • Font_Paint
  • Font_Paint Block
  • Font_Paint Flags
  • Font_Paint Special Characters Parameters
  • Font Background Blending
  • Font Encoding Identifier
  • Font Transformation Matrix
Revised on October 17, 2009 19:11:02 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Font_Paint Flags, Font Background Blending, Font_Paint Special Characters, Font_Paint Special Characters Parameters, Font_ScanString Flags

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