Kbase P27343: How PROGRESS calculates width of a fill-in
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/20/2003 |
|
Status: Unverified
GOAL:
How PROGRESS calculates width of a fill-in
FIX:
The formula for calculating how wide a fill-in will be is:
If the value is 3 characters or less, Progress multiples the length of the string times the width of the widest character in the font:
string-length * max-char-width
If the value is more than 3 characters, but less than 13, Progress uses the widest character in the font for 3 characters and the average character for the remaining characters:
(3 * max-char-width) + ((string-length - 3) * ave-char-width)
If the value is 13 characters or more, Progress multiplies the length of the string times the average character width for the font:
string-length * ave-char-width.
For all other fonts than the default system font, Progress multiplies the length of the string (for all string lengths) times the average character width for the font:
string-length * ave-char-width.