BUG: ChooseFont() Sample Text Displays DBCS Chars Incorrectly

Last reviewed: January 15, 1998
Article ID: Q145756
4.00 WINDOWS kbprg kbbuglist

The information in this article applies to:

  • Microsoft Win32 Software Development Kit (SDK) for 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 reference words: 4.00
KBCategory: kbprg kbbuglist
KBSubcategory: KBIntlDev
Keywords : KBIntlDev kbbuglist kbprg
Version : 4.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 15, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.