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



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Standard Edition for Windows 1.0

This article was previously published under Q75092

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.

Modification Type:MajorLast Reviewed:11/18/2003
Keywords:kbbug KB75092