| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |
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-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |