×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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

Query printer fonts

Query printer fonts

Query printer fonts

(OP)
Is there a PCL sequence that I can send to a printer to make it print its available fonts ? I saw this once, but I don't know how is it done.

RE: Query printer fonts

I don't know of an escape sequence, but there may be a control panel mechanism to print out a typeface listing. This is typical on a LaserJet.

Jim Asman
jlasman@telus.net

RE: Query printer fonts

I don't know of a sequence which will cause the printer to print a typeface list.

However, the following sequence, when sent to the printer on either an IEEE 1284 parallel port, or a TCP/IP/JetDirect connection, will cause the printer to return font selection details on the back channel:


<Esc>*s3t         Status Readback Location Type: Internal
       0u         Status Readback Unit: All
       4I         Inquire Status Readback: Font Extended


Of course, you will need something to read the response; rather than reinvent the wheel, join the HP Developer Association at www.hpdevelopersolutions.com, as an Affiliate (for free), and download their Status Readback Tool from "Developer Kits | LaserJet | LaserJet Communications | LaserJet Communication Tools and Code"

RE: Query printer fonts

You can apparently use PML (Printer Management Language) on most modern LaserJets to print various information (and to do lots of other things as well).

To print a PCL typeface list, send the following:

<esc>%-12345X@PJL DMINFO ASCIIHEX="040004010105020402015E"<lf><esc>%12345X

where <esc> represents Escape   (0x1b)
      <lf>  represents LineFeed (0x0a)

I've no idea whether it works OK, as I don't have an HP LaserJet printer here - it has NO effect on my local Brother HL-1270N.

RE: Query printer fonts

I missed out a hyphen from the terminating UEL sequence in the post about using PML. Sorry.

Have now tried it on several HP devices:

  - HP4M+     no effect
  - HP4Si     no effect
  - HP5000GN  causes printer to produce PCL Typeface list

RE: Query printer fonts

There is also a PCL sequence which can be used to send PML commands:

    <esc>&b#W[data]

where the data part is in the form:

    PML<sp><PML command>

but only SET and DISABLE PML commands will be actioned; UNSET or DISABLE commands will be ignored.

I'm not sure whether the 'PML command' in the above takes the same format as in the PJL DMINFO equivalent, so I haven't tried this yet, although I DO know that the hex(04) in the PJL example above indicates a SET command.

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