☜ | MWAPI - $WTFIT1995 Version of ANSI (Equivalent to Current ISO Version) of Standard | ☞ |
$WTFIT ( expr , numexpr , fontface , fontsize , fontstyle , unitspec )
$WTFIT returns a value equal to the number of characters in the text string expr that could be displayed fully, using an indicated font, in an area whose width is numexpr in the unit of measure specified by unitspec. wide. The indicated font is specified by fontface, fontsize and fontstyle.
For a string expr containing c characters, $WTFIT returns the following values:
If the entire string expr can be displayed in an area numexpr units wide, $WTFIT returns c.
If the first character in the string expr is too wide to be displayed fully in an area numexpr units wide, $WTFIT returns 0 (zero).
If the first m characters in the string expr can be displayed fully in an area numexpr units wide, but the first m+1 characters are too wide to be displayed in an area numexpr units wide, $WTFIT returns m.
If information is not available for the specified font, the return value is equal to the emptystring.
If unitspec is not equal to "PIXEL" or "POINT", an error condition occurs with $ECODE containing ",M?8,".
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
This page most recently updated on 14-Nov-2023, 22:13:10.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)