Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

printing a text file in courier 8

printing a text file in courier 8

printing a text file in courier 8

$1001.00 to the first person to answer this!!!
I have a text file. I have a fax software that ignores my font and prints it with variable proportion fonts that I do not want. My questions are - What is the esc seq for courier 8? How do I add this to my text file and where (I tried putting it at the top fo the file and it didn't work)?

Here is the solution the Fax people gave someone else:

"When you send a text file to a printer without any font formatting info, the printer will print the page using it's default font. This is true of the RightFAX conversion engine as well. The default font for RightFAX is a proportional space font. If you wish to have your text file print out in Courier, you will need to include a PCL-5 escape code at the beginning of the text file which instructs the receiving printer to use the Courier font. The PCL-5 escape code for Courier 10 point font is: {ESC}E{ESC}(s4099t0b0s12h0P "

RE: printing a text file in courier 8


will nominally give you 8 characters per inch.

Jim Asman

RE: printing a text file in courier 8

... and I can just paste this like it's the first line of the .txt file? i think I'm not putting this in the txt file in the right format.. I'll try this though..

Thanks, jim.. appreciate your help!


RE: printing a text file in courier 8

A couple of extra points:
  • Jim gave you the escape sequence to select Courier at 8 characters-per-inch (which is quite large); perhaps what you actually want is 8 point (equivalent to 15 cpi for this font) for which you would need "<esc>(s0p15h0s0b4099T" (without the quotes).
  • The escape character (shown variously as {ESC} or <esc> in the posts) represents the character with decimal code 27 (equivalent to hexadcimal code 1b).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close