All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

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 function get-string-extent 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


CAPI User Guide and Reference Manual (Windows version) - 25 Feb 2015

NextPrevUpTopContentsIndex