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