Font Alignment
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.
About this post
Posted: 2017-07-24
By: BlackBeltVB
Viewed: 451 times
Categories
Attachments
FNTALIGN.ZIP
Posted: 7/24/2017 7:17:35 PM
Size: 1,514 bytes
Requirements
This code originally appeared on BlackBeltVB.com, and has been republished here with the permission of Matt Hart.
Special Instructions
Uses the following API function:
- GetTextMetrics
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.