Microsoft KB Archive/196648

{|
 * width="100%"|

PRB: AddFontResource Fails with FNT Files Larger Than 64K

 * }

Q196648

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows 95
 * the operating system: Microsoft Windows 98

-

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.