FunctionPackage: common-graphicsToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

font-string-width

Arguments: font string &optional start end

Returns the width in font of the substring of string starting at start and ending at end (the whole string if start and end are not specified).

start must be greater than or equal to 0 and less than or equal to end, which must be greater than or equal to 0 and less than or equal to the length of string.

Example (the return values depend on the font returned by system-font; you may see different values):

(font-string-width (system-font) "foo") -> 20
(font-string-width (system-font) "foo" 0 3) -> 20
(font-string-width (system-font) "foo" 1 3) -> 16
(font-string-width (system-font) "foo" 2 2) -> 0
(font-string-width (system-font) "foo" 0 4) -> ERROR 
               (end is bigger than the length of string)

Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1