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_ReadFontMetrics

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

Font_ReadFontMetrics

(SWI &4009F)
Entry
R0 Font handle
R1 Pointer to buffer for bounding box array, 0 to read size
R2 Pointer to buffer for X width data, 0 to read size
R3 Pointer to buffer for Y width data, 0 to read size
R4 Pointer to buffer for miscellaneous data, 0 to read size
R5 Pointer to buffer for kerning data, 0 to read size
R6 Pointer to buffer for new style kerning data, 0 to read size1
R7 0

1 Available from version 3.41 onwards.

Exit
R0 File flags
R1 Size of bounding box data
R2 Size of X width data
R3 Size of Y width data
R4 Size of miscellaneous data
R5 Size of kerning data
R6 Size of new style kerning data
R7 Corrupted (maybe)

Use

This purpose of this call is to read information in the font’s IntMetrics file.

Notes

Currently it is not permitted on fonts which have a transformation matrix applied. All values are signed millipoints, unless specifically stated.

Width data is an array of 256 words, bounding box data an array of 256 x4 words (x0, y0, x1, y1). This data is only returned for the first 256 characters of the font.

This call is of doubtful use for fonts with up to 2 billion characters, so should use Font_CharBBox or Font_ScanString instead of using R1 to R3 in this call.

The output values of R1 to R6 will be zero if no information is present in the file be examined.

See also

  • Font Bounding Box
  • Font File Flags
  • Font Kerning Data
  • Font Kerning New Style Data
  • Font Miscellaneous Data
  • Font_CharBBox
  • Font_ScanString
Created on October 17, 2009 21:29:17 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: The Font Manager SWI Calls, Font_EnumerateCharacters, Font Bounding Box, Font File Flags, Font Miscellaneous Data, Font Kerning Data, Font Kerning New Style Data

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