BUG: ChooseFont() Sample Text Displays DBCS Chars Incorrectly (145756)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • Microsoft Windows 95

This article was previously published under Q145756

SYMPTOMS

The Font dialog's Sample text window displays DBCS characters incorrectly for the MSP-Gothic typeface font if the user selects a font style other than Regular.

CAUSE

If the CHOOSEFONT structure's Flags field contains the CF_NOSCRIPTSEL flag when the ChooseFont() API is called and the user subsequently selects the MPS Gothic font in the Font list box and then sets the font style to a style other than regular, the DBCS text is displayed incorrectly. The CF_NOSCRIPTSEL flag is used in Windows 95 only and specifies that there should be no selection in the character set (Script) combo box.

Applications use this flag to support multiple character set selections. This flag is set on input only. When it is set, the script combo box is disabled and the lfCharSet member of the LOGFONT structure is set to DEFAULT_CHARSET.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The occurance of this problem does not depend on any fonts or size of font. Therefore, the problem may occur while the sample text is displaying other fonts.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbIntlDev KB145756