Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/100487

From BetaArchive Wiki

INFO: Use 16-Bit .FON Files for Cross-Platform Compatibility

Q100487

4.00 | 3.10 3.50 3.51 WINDOWS | WINDOWS NT kbgraphic



The information in this article applies to:


  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT Server versions 3.5, 3.51
    • Microsoft Windows NT Workstation versions 3.5, 3.51
    • Microsoft Windows 95





SUMMARY

The AddFontResource() function installs a font resource in the GDI font table. Under Windows NT and Windows 95, the module can be a .FON file or a .fnt file. Under Windows 3.1, the module must be a .FON file. When using Win32s, AddFontResource() passes its argument to the Win16 AddFontResource, and therefore .fon files should be used for portability.

In addition, when running under Windows NT or Windows 95, the module can be either a 32-bit "portable executable" or a 16-bit .fon file. However, if the same Win32 executable is run under Win32s, the call to AddFontResource() fails if the .fon is not in 16-bit format. Therefore, for compatibility across platforms, use 16-bit .fon files. These can be created using the Windows 3.1 Software Development Kit (SDK).

Additional query words: 3.10 4.00

Keywords : kbOSWinNT350 kbOSWinNT351 kbSDKWin32 kbDSupport
Issue type : kbinfo
Technology : kbAudDeveloper kbWin32sSearch kbWin32API


Last Reviewed: December 16, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.