×
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

Copy ROM Font and assign a FONTID

Copy ROM Font and assign a FONTID

Copy ROM Font and assign a FONTID

(OP)
I have a customer that needs to use a resident PCL font with a different FONTID.  Looking at the PCL Command Reference it appears that I select the typeface (Font) that I want to use, then use the copy/assign command to make a copy of the ROM font into RAM and then assign a FontID.  Is that correct?  I want to assign fontid of 1014 to a resident Times Font.  Here is what I think I would send to the printer.  Can you check this for me please?

Select Times Font              <ESC>(4101T
Copy assign current font       <ESC>*c6F
Assign FONTID of 1014 to font  <ESC>*c1014D
Make 1014 Font Permanent       <ESC>*c1014d5F

Is this correct?  Thanks
  

RE: Copy ROM Font and assign a FONTID

Is this correct?

NO.

The first sequence will select a font which supports the coded-character-set with Symbol Set identifier 4101T.

I suspect that what you intended was to select the font with Typeface identifier 4101, in which case you'd need:

{esc}(s4101T

although (as this is only a partial font selection sequence) it may not select the font you expect, if the previously selected font was a fixed-pitch font, or the selection had included a symbol set not supported by this typeface.

A full font selection sequence for the CG Times font would be something like:

{esc}(19U{esc}(s1p10v0s0b4101T

as you would see if you printed off a PCL TypeFace List from your LaserJet printer.

As for the other sequences: I think that all you'd need is:

{esc}*c1014d6F

i.e. the order of the 'assign ID' and 'copy font' sequences should be reversed.

... and the final {esc}*c1014d5F is probably not required, as the font you are 'copying' is (supposed to be) a ROM-resident font, in which case it is not actually copied at all (it's just given an alias); it depends on what you later want to do with the identifier.

But why go to all this bother?
If you have to put in a (preferably full) font selection sequence to select the ROM font, in order to associate it with an identifier (as you'd perhaps use with a downloaded soft font), why not just use the font selection sequence directly?  

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