PRB: AddFontResource() Fails with FNT Files Larger Than 64K

ID: Q196648

The information in this article applies to:

SYMPTOMS

When calling AddFontResource() on Windows 95/98 with a FNT file larger than 64K, the function returns 0 (zero) and GetLastError() reports an error status of 0 (zero).

RESOLUTION

There are two ways to work around this problem. The simplest solution is to author FNT files so that they are smaller than the 64K limit. A better solution, however, is to create a True Type font rather than a FNT file.

STATUS

This behavior is by design.

REFERENCES

For additional information on troubleshooting problems with AddFontResource(), please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q160214
   TITLE     : PRB: 32-bit Font Files Not Recognized by Windows 95 Shell

   ARTICLE-ID: Q100487
   TITLE     : Use 16-Bit .FON Files for Cross-Platform Compatibility

   ARTICLE-ID: Q130459
   TITLE     : SAMPLE: Adding TrueType, Raster, or Vector Fonts to System

Additional query words: kbDSupport
Keywords          : kbSDKWin32 kbWinOS95 kbWinOS98 
Version           : WINDOWS:
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: December 4, 1998