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

NextPrevUpTopContentsIndex

port-string-width

Function
Summary

Returns the width of a string drawn to a given port in pixels.

Package

graphics-ports

Signature

port-string-width port string => width

Arguments

port

A graphics port.

string

A string.

Values

width

An integer.

Description

The function port-string-width returns the width in pixels of string when drawn to port . The font used is the font currently in the port's graphics-state.

Notes

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 (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex