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_DecodeMenu

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» The Font Manager
» SWI Calls
» Font_DecodeMenu

Font_DecodeMenu

(SWI &400A0)
Entry
R0 Font_DecodeMenu Flags
R1 Pointer to menu definition, as per Font_ListFonts
R2 Pointer to menu selection, as per Menu_Selection within Wimp_Poll
R3 Pointer to buffer to contain result, or 0 to return size
R4 Size of buffer (if R3 <> 0)
Exit
R0 Preserved
R1 Preserved
R2 Pointer to rest of menu selections
R3 Preserved
R4 Size of buffer required, or 0 for no font selection

Use

This purpose of this call is to decode the selection made from a font menu.

Notes

The definition of the font menu is returned in the same format as used by Font_ListFonts.

The format of the returned string depends on whether the names of the fonts or font encodings have been specified in the Messages_n_ file within the font directory.

If no Messagen file was found (and hence the Font Manager has found the font names by scanning the directory tree) the name field is absent.

Details of the Font_DecodeMenu Result are available.

Experimentation of this call suggests that passing in a selection block pointing at System Font will generate an error, rather than set R4 = 0.

See also

  • Font_DecodeMenu Flags
  • Font_DecodeMenu Result
  • Font_ListFonts
  • Message_Selection?
  • Wimp_Poll
Revised on October 11, 2009 19:00:59 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: The Font Manager SWI Calls, Font_DecodeMenu Flags, Font_DecodeMenu Result

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