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

get-char-width Function

Summary

Returns the width of a character in pixels.

Package

graphics-ports

Signature

get-char-width port character font => width

Arguments
port
A CAPI pane.
character
A character.
font
A font.
Values
width
An integer.
Description

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

font defaults to the font associated with port.


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44