Discussion Locked

Printing with variable font sizes.

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hai,
Please tell me how I can perform the following tasks. I have a dot matrix printer and I wish to do the following
1. While printing a line of text I want to increase the character size.
2. Similarly I want ot decrease the character size during printing.
3. After performing any of the above tasks I wish to return to normal character size.
4. How can I advance half a line. Say for example to print a subscript.
5.can default tab size be set.

2 replies

by seagull data services

You'll need to get hold of the printer manual and find out what the control codes for changing fontsize are. You then embed the control code in the text you're sending to the printer. eg
if the control code for changing font size is
ESC$and your text is "This is the big word" and you want to enlarge the word big from 10 to 14 you would send

"this is the " & vbKeyEscape & "$14" & "big" & vbKeyEscape & "$14 word"

You would have to set your line spacing to accommodate the increase in font height too.

Hope this helps
John

This discussion is closed to new replies.