INFO: Limitations of WINOLDAP's Terminal Fonts

Last reviewed: February 6, 1997
Article ID: Q117742
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) for Windows version 3.1
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows NT versions 3.1
    

SUMMARY

The MS-DOS prompt window (WINOLDAP) uses a set of private "Terminal" fonts. Applications developed for the Windows Graphical Environment should not rely on these fonts.

MORE INFORMATION

WINOLDAP uses Terminal-like fonts to present its output in the Enhanced mode. The font resources are loaded when WINOLDAP is launched and are removed when it terminates. To verify this, run a ChooseFont common dialog box (such as the one in FONTEST sample in the SAMPLES directory of the Windows 3.1 SDK) when WINOLDAP is not running. Launch WINOLDAP and notice that "Terminal" fonts are added to the list of fonts in the common dialog box.

Developers whose applications benefit from Terminal-like fonts may try to use Terminal fonts out of convenience. However, it is important to realize that these fonts (DOSAPP.FON, EGA40WOA.FON, EGA80WOA.FON, CGA40WOA.FON, AND CGA80WOA.FON) are unlike the standard fonts in that they are shipped for use by WINOLDAP. The standard Windows fonts are guaranteed to be available in future versions of Windows; such guarantees do not apply to the Terminal fonts. The Terminal fonts have actually been altered from version 3.0 to version 3.1 of Microsoft Windows. A simple resolution to this lack of guarantee is to ship the fonts along with the application. These fonts, however, may not be shipped freely with third-party applications.

The paragraph above may lead you to believe that applications running exclusively under Microsoft Windows version 3.1 can rely on the Terminal fonts for the applications' displays because all Windows-based applications, by default, have the above fonts installed. However, a bug in WINOLDAP denies applications that benefit: When the last WINOLDAP session exits, it removes the DOSAPP.FON module twice. Any application with the DOSAPP.FON module loaded then loses the fonts without prior notice.


KBCategory: kbgraphic
KBSubcategory: GdiFnt
Additional reference words: 3.10



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.