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



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q137882

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.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

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.

REFERENCES

For additional information about technique you can use to create a 16-bit .fon file, please see the following article in the Microsoft Knowledge Base:

76535 Creating a Custom Raster Font


Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbBug kbpending KB137882