ContentsIndexPreviousNext

FONT_SIZE_ADJUST

This variable allows you to adjust the size of the standard font measurement that is computed for graphical controls (applies to variable-pitch fonts only). The value of FONT_SIZE_ADJUST is added directly to the computed standard font size. For example, a setting of "1" adds one pixel to the computed width of the font. Note that because the standard font measure is used to compute the width of nearly all controls, any adjustment made by this variable has a significant impact on the layout of your screens.

After applying the adjustment, the runtime checks and ensures that the computed font measure is not less than one (1) or greater than the widest character in the font. If you find that the default size of most controls is slightly smaller than you prefer, you might try setting FONT_SIZE_ ADJUST to a small value (typically "1").


Note that the adjustment to the font measure is made after the wide font measure is computed (this is important because the wide font measure depends on the standard font measure).
Generally, it is recommended that FONT_SIZE_ADJUST (and FONT_WIDE_SIZE_ADJUST) be left at its default value of "0". You can also use negative values, but there is rarely a need to do so.

Note that in order to improve performance, the runtime computes the font sizes only occasionally. Although you can change the variable dynamically at runtime, the exact time when the new setting takes effect is difficult to predict. For this reason, we recommend that you either set it in your program prior to constructing your initial screen, or directly in the configuration file.

Also note that this variable computes the width of a printer font in the same way that the width of a screen font is computed. This behavior can be suppressed by compiling with the "-C43" option.