Search Tools Links Login

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. 

Font alignment on a baseline demo

About this post

Posted: 2017-07-24
By: BlackBeltVB
Viewed: 446 times

Categories

Visual Basic 6

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:


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.