Microsoft KB Archive/100998

= BUG: ? Command with FONT Clause Prints Double Spaced =

Article ID: 100998

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q100998



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.



Steps to Reproduce Problem
  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.   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 kbFP250 kbFP260 kbvfp300 kbvfp500 kbvfp600

Keywords: kbbug KB100998

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.