Microsoft KB Archive/43204
Article ID: 43204
Article Last Modified on 11/21/2006
This article was previously published under Q43204
When redirecting fonts to a printer with WINDOW OUTPUT #n, the fonts are reset after the first page of output. This occurs only in the interpreter part of QuickBasic version 1.00 for the Macintosh. This problem does not occur with applications compiled with QuickBasic, nor with the Basic Interpreter version 3.00.
Microsoft has confirmed this problem in Microsoft QuickBasic version 1.00 for Macintosh Systems. This problem is corrected in QuickBasic version 1.00b.
The workaround for this problem is to set TEXTFONT at the beginning of each printed page. As mentioned above, compiling the program also solves the problem.
The following code produces one page of Monaco font and one page of the default font. The default font is determined by the Finder. The default application font was changed from New York to Geneva on the Finder released May 7, 1984.
REM *** TEXTFONT example *** OPEN "LPT1:" FOR OUTPUT AS #1 WINDOW OUTPUT #1 TEXTFONT 4 'Monaco FOR i%=1 to 132 PRINT "Hello" NEXT i% CLOSE #1
Additional query words: MQuickB
Keywords: kbbug kbfix KB43204