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

ID: Q196648


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
    on the following platforms: Win95, Win98


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 about troubleshooting problems with AddFontResource(), please click the article number(s) below to view the article(s) in the Microsoft Knowledge Base:

Q160214 PRB: 32-bit Font Files Not Recognized by Windows 95 Shell
Q100487 Use 16-Bit .FON Files for Cross-Platform Compatibility
Qxxxxxx

Additional query words: kbDSupport

Keywords : kbSDKWin32 kbWinOS95 kbWinOS98
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: August 26, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.