BUG: ChooseFont() Sample Text Displays DBCS Chars Incorrectly

ID: Q145756


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), used with:
    • Microsoft Windows 95


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.

Additional query words: 4.00

Keywords : kbIntlDev
Version : 4.00
Platform : WINDOWS
Issue type :


Last Reviewed: March 7, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.