BUG: 32-Bit .Fon File Causes GP Fault with Standard VGA Driver

Last reviewed: October 9, 1995
Article ID: Q137882
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) versions 3.51, 4.0

SYMPTOMS

Windows NT and Windows 95 can use 32-bit .fon files in the PE format. These raster font files can be created when using the 32-bit compiler or linker if you create a 32-bit DLL that contains one or more .fnt files in its resources. However, If you run Windows 95 with the "Standard Display Adapter (VGA)(Microsoft)," your application will shut down (perform an illegal operation or produce a general protection (GP) fault) if you try to call TextOut() with a 32-bit .fon raster font selected into the device context you are calling TextOut() on.

RESOLUTION

Create a 16-bit .fon file instead of a 32-bit .fon file if you want your font to function properly on all video drivers. The following article in the Microsoft Knowledge Base describes a technique you can use to create a 16-bit .fon file:

   ARTICLE_ID: Q76535
   TITLE     : SAMPLE: Creating a Custom Raster Font

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

Steps to Reproduce Problem

  1. Create a 32-bit .fon raster font file by using the 32-bit compiler.

  2. Call CreateFont() to create a logical font for it, and select it into a device context.

  3. Try calling TextOut() to draw some text. A GP fault occurs.


Additional reference words: 4.00 TextOut .fnt
KBCategory: kbgraphic kbbuglist
KBSubcategory: GdiFnt


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: October 9, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.