3
Answers

Printing and Selecting Fonts

Ask a question
shercua

shercua

20y
2.3k
1
I have a question regarding receipt printer. I'm figuring out how to select different fonts like Times New Roman, Arial, Tahoma, Courier, etc. Do you know the ESC (escape) commands for selecting fonts? And for example if the ESC command is ESC M, how do I write the font name that I want to use? Am I just going to add the font name after the ESC command? Other alternative is do you know how to select fonts using C#.Net? I'm going to write the code in the class file (and not in the form file), and I'm using Windows 2000, serial connection, and API commands using Winspool.drv (eg. WritePrinter, OpenPrinter, etc.) ANd after selecting the desired font, what will happen if I initialize the printer again? Will it retain the font that I selected? Thanks for your help! I really appreciate a quick reply. Thanks!

Answers (3)