BUG: ? Command with FONT Clause Prints Double Spaced

Last reviewed: July 15, 1997
Article ID: Q100998
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 5.0a

SYMPTOMS

Issuing a ? print command with a FONT clause sometimes prints the text double spaced.

CAUSE

The screen font or print font is smaller than the font used by the question mark command.

RESOLUTION

Make sure the screen font or the print font is the same as the font used in the question mark command. You can change the print font by issuing the SET PRINT FONT command. Actually if you set the screen or printer font ahead of time, there is no need to use the font clause on the question mark command unless you wish to change fonts briefly.

In FoxPro for Windows 2.6 the screen font can be changed by issuing the following command:

   MODIFY WINDOW SCREEN FONT "ARIAL", 10

In Visual FoxPro the screen font can be changed by issuing the following command:

   _SCREEN.FONTNAME="ARIAL"
   _SCREEN.FONTSIZE="10"

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5, 2.5a, 2.5b, and 2.6 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Issue the following commands:

          MODIFY WINDOW SCREEN FONT "ARIAL", 8    && FoxPro 2.6
    
          -or-
    
          _SCREEN.FONTNAME="ARIAL"                && Visual FoxPro
          _SCREEN.FONTSIZE=8
    
          ? "Hello there?"
          ? "Hello there?"
    
       These commands cause the text to be displayed single spaced, with one
       line of text directly on top of the next.
    
    

  2. Issue the following commands:

          ? "Hello there?" FONT "arial",10
          ? "Hello there?" FONT "arial",10
    

    The text appears double spaced with one full blank line between each line. This phenomenon occurs both on screen and in printed output.


Additional query words: doublespace singlespace double-space single-space
two lines
Keywords : buglist2.50 buglist2.50a buglist2.50b FoxWin vfpbug5.0a kbbuglist kbprg
Version : 2.5 2.5a 2.5b 2.6 3.0 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


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: July 15, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.