How To List Fixed Pitch Fonts with GetTextMetrics (298133)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
This article was previously published under Q298133 SUMMARY
You can use the GetTextMetrics function within an iteration through the Printer object's Font collection to determine if a font is non-proportional by analyzing the TEXTMETRIC structure that is returned for each font in the collection.
REFERENCES
For additional information on fonts and the GetTextMetrics function, click the article number below to view the article in the Microsoft Knowledge Base:
152136 How To Know if Large/Small Font Is in Use Under Win95/98/Me/NT
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbAPI kbCodeSnippet kbFont kbGDI kbhowto KB298133 |
---|
|