Next Previous Up Top Contents Index

2 GP Reference Entries

compute-char-extents

Function

Summary

Returns the starting x coordinates of each of the characters in a string if the string was printed to a graphics port.
Signature

compute-char-extents port string &optional font => extents

Arguments

port

A graphics port

string

A string

font

A font

Values

extents

An array of integers

Description

Returns the extents of the characters in string in the font associated with port, or the font given. The extents are an array, one element per character, which gives the starting x coordinate of that character if the string was drawn to port.

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker