KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q65648: Some Windows 3.00 Fonts Don’t Work with QuickC

Article: Q65648
Product(s): See article
Version(s): 2.00 2.01 2.50 2.51
Operating System(s): MS-DOS
Keyword(s): ENDUSER | buglist2.50 buglist2.51 s_c docerr | mspl13_c
Last Modified: 24-OCT-1990

Certain Windows version 3.00 font files do not display correctly when used
with the QuickC font routines, although the manuals state that the
.FON files from Windows are identical to the .FON files from QuickC.
The .FON files from Microsoft Windows versions earlier than 3.00 work
correctly.

The vector-mapped fonts from Windows version 3.00 work correctly with
QuickC, but most of the bit-mapped fonts will display corrupted
characters if used with the QuickC font routines.

Sample Code
-----------

The following program reproduces this problem by using one of the
Windows 3.00 bit-mapped font files, HELVE.FON:

#include <graph.h>

void main()
{
  _registerfonts("HELVE.FON");
  _setvideomode( _VRES16COLOR );
  _clearscreen( _GCLEARSCREEN );

  /* Set font to the first font in the font file (n1) */
  _setfont("n1");
  _moveto(0,0);
  _outgtext("Test abcdefgABCDEFG12345!@#$%");
}

Compile this program using "qcl test.c graphics.lib" and execute in
the directory containing the Windows 3.00 font files. The test text
will be displayed as a line of corrupted characters.

Microsoft has confirmed this to be a problem with QuickC versions 2.50
and 2.51. We are researching this problem and will post new
information here as it becomes available.

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.

Copyright Microsoft Corporation 1986-2002.