BUG: Duplicate PostScript Font Names in VB Printer.Fonts List

ID: Q75092


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for Windows, version 2.0
  • Microsoft Visual Basic programming system for Windows, version 1.0


SYMPTOMS

When a PostScript printer driver is active in Microsoft Windows version 3.0, the Fonts(index%) property of Visual Basic's Printer object may return one or more duplicate font names at run time. This will not occur in either Visual Basic version 1.0 or 2.0 if you are using Microsoft Windows version 3.1.


CAUSE

This problem is caused by Microsoft Windows version 3.0 itself, not by Microsoft Visual Basic.


STATUS

Microsoft has confirmed this to be a problem with Microsoft Windows version 3.0. The problem was corrected in Microsoft Windows version 3.1.


MORE INFORMATION

The following program displays the list of font names available for the PostScript printer currently selected in the Windows Control Panel:


   Sub Form_Click ()
      For J% = 0 to Printer.FontCount - 1
      Print Printer.Fonts(J%)
      Next J%
   End Sub 
In some cases, when a PostScript printer is active in Windows, one or more fonts are listed twice.

Additional query words: 2.00

Keywords :
Version : WINDOWS:1.0,2.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.