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

get-character-extent Function

Summary

Returns the extent of a character in pixels.

Package

graphics-ports

Signature

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

Arguments
port
A CAPI pane.
character
A character.
font
A font.
Values
left
An integer.
top
An integer.
right
An integer.
bottom
An integer.
Description

The function get-character-extent returns the extent in pixels of character in font.

font defaults to the font associated with port.


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15