NextPrevUpTopContentsIndex

get-string-extent

Function
Summary

Returns the extent in pixels of a string.

Package

graphics-ports

Signature

get-string-extent port string &optional font
=> left , top , right , bottom

Arguments

port

A CAPI pane.

string

A string.

Values

left

An integer.

top

An integer.

right

An integer.

bottom

An integer.

Description

The get-string-extent function returns the extent in pixels of the string in the font associated with port , or the font given.

Note: To compute the horizontal extents of each successive character in a string for a given port or font, use compute-char-extents.

See also

compute-char-extents


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex