Returns the extent in pixels of a string.
graphics-ports
get-string-extent port string &optional font => left, top, right, bottom
port⇩ |
A CAPI pane. |
string⇩ |
A string. |
font⇩ |
A font. |
left |
An integer. |
top |
An integer. |
right |
An integer. |
bottom |
An integer. |
The function get-string-extent
returns the extent in pixels of string in font.
font defaults to the font associated with port.
Note: To compute the horizontal extents of each successive character in a string for a given port or font, use compute-char-extents.
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15