PRB: VB Uses Bitmap Fonts When TrueType FontSize < 7 PointsLast reviewed: June 21, 1995Article ID: Q84483 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0- Microsoft Visual Basic programming system for Windows, version 1.0
SYMPTOMSThe Microsoft Windows version 3.1 operating environment provides you with TrueType scalable fonts that can be used in Microsoft Visual Basic for Windows applications. Visual Basic for Windows supports TrueType fonts for font sizes of 7 points or greater -- depending on the video driver installed. Smaller fonts are mapped to available bitmap fonts, based on the fonts available for the video driver installed.
CAUSEThis is not a problem with Visual Basic for Windows. This is how Windows manages fonts. This is expected behavior in Windows when using TrueType fonts that are less than 7 points in size.
STATUSThis behavior is by design. There is no way to force Visual Basic for Windows to use TrueType fonts for font sizes less than 7 points.
MORE INFORMATIONMicrosoft Windows version 3.1 uses automatic bitmap font substitution, which is done to preserve readability at small sizes. At very small point sizes (4 to 7 points on standard VGA video resolutions), most Type 2 fonts are substituted with a hand-tuned bitmap font to preserve readability. This can cause the style of the font to change. For example, the Times New Roman font shipped with Windows version 3.1 appears as the Small Fonts font for sizes 4 - 6 and MS Serif for sizes 6.25 - 8.25, rather than its native face it has at larger sizes. The program below demonstrates this. The program attempts to print a message using the Arial font in sizes from 1 to 9. Visual Basic for Windows uses the font Small Fonts for font sizes less than 7 and depending on the video driver installed may use Arial for sizes between 7 and 8.25. Using the standard VGA driver, Arial is used for fonts sizes greater then 8.25.
Steps to Reproduce This Behavior
|
Additional reference words: 1.00 2.00 3.00 3.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |