When measuring fonts in order to ascertain the size of a control, the result of the default size calculation can differ between fonts that contain Unicode characters and those that do not. This difference in measurement can affect the displaying of the controls on a user interface.

If you are using non-Unicode fonts in your controls, you can leave the new USE_UNICODE_FONTS configuration variable at its default of FALSE.

If you are using Unicode fonts in your controls, set USE_UNICODE_FONTS to TRUE, so that the measurement is carried out using Unicode font functions; this will ensure that an accurate measurement of the font is calculated, and the control will be correctly sized.

Tip: In some circumstances when USE_UNICODE_FONTS is set to TRUE, the runtime will test every character in the font for its size to get a real maximum width. Because Unicode fonts can contain a large number of characters (up to 65,000), it could mean that calling W$FONT to create a font could take more time than it should; if that is the case, set USE_UNICODE_FONTS to FALSE, so that only ANSI character widths are calculated. It should ensure that the font is created quicker, but you may find that controls created in this way may not be large enough to display the full data item attached to it, and some truncation may occur.