How to align fonts along a baseline
When printing different point sizes of a font using VB's Print method, they
default to aligning at the top of the characters rather than on a common
baseline. This sample shows how to properly align them. Works for the Form,
PictureBox, UserControl, and Printer objects.
Uses the following API function:
GetTextMetrics
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.