Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[FONT] Not the same font with the same escape code

Status
Not open for further replies.

yp56

Programmer
Aug 30, 2001
83
FR
Hello,
I have to print in PCL with a font than I download from a file (a CMC7 font). And I use other ones which are stored into the printer.
The problem is after I use the CMC7 font for the first time, my Times font will print as CMC7 too ! Besides before I use the CMC7, Times is well printed.

here is I download the CMC7 font :

%-12345XE*c10001D)s0142W P
   «Ð9 ' k €................
........Ëá111áËËá ù*c5F

The font is well downloaded since I can use it.

Here is an example of what I print (just after I downloaded font):

---------------------------------------------------------
---------------------------------------------------------

%-12345XE&l0O&l8C&k12H&l101A&l0E&l56F&a0L&a120M
((s0p12h0s0b4099T 00000004







((s0p12h0s0b4099T ((s1p10v0s0b16901TM. DUPONT Bernard // <- Well printed with the Times font
((s0p12h0s0b4099T ((s1p10v0s0b16901T8 rue nationnale ((s1p12v4s0b4148TSociete Geniale
((s0p12h0s0b4099T ((s1p10v0s0b16901T37100 Tours ((s1p12v4s0b4148T8 av. du pont neuf
((s0p12h0s0b4099T 00000004 ((s1p10v0s0b16901T ((s1p12v4s0b4148T75000 PARIS

((s0p12h0s0b4099T ((s1p10v0s0b16901T<18>


((s0p12h0s0b4099T (10001X(s10V(s0S(s0B#00000004 #222222222222^ 00000111111111111/ // call of the CMC7 font is good


((s0p12h0s0b4099T 00000003







((s0p12h0s0b4099T ((s1p10v0s0b16901TM. DUPONT Bernard // The times font is printed as the CMC7 one :(
((s0p12h0s0b4099T ((s1p10v0s0b16901T8 rue nationnale ((s1p12v4s0b4148TSociete Geniale
((s0p12h0s0b4099T ((s1p10v0s0b16901T37100 Tours ((s1p12v4s0b4148T8 av. du pont neuf

---------------------------------------------------------
---------------------------------------------------------

Why the times font is printed as the CMC7 downloaded one (and not the other)?
How can I solve this problem ?

thank a lot :)
 
It is probably a symbol set issue. I ran into this a while ago.

After you use the CMC7 font, always issue <esc>(10U
and see if that doesn't clear it up. That is for PC8 characters, so substitue if you want different set.


Jim Asman
jlasman@telus.net
 
ok it's right now :)
thanks a lot jlasman

I put <esc>(10U before calling the Times font rather than after the CMC7 (it was easier in my soft)

But i didn't find this command in my doc. What does it do ?
 
It specifies the symbol set.

Jim Asman
jlasman@telus.net
 
The PC-8 symbol set to be specific
Esc(8U would probably work too which is the roman 8 symbol set.

Esc(0U might also work (ASNSI ASCII)

The advantantage to Esc(10U is that it contains the box drawing characters which can easily be used for drawing lines. the characters are the same as with ms-dos line drawing characters i.e. chr$(196) is -
(i used the dash or minus symbol above actually).


 
Any symbol set supported by the font will get your Times typeface back, and in any modern LaserJet many are available for internal fonts.

Jim Asman
jlasman@telus.net
 
The problem with character sets such as 8U and 10U, is that they aren't generally mapped to any of the standard language/keyboard settings (I accept that they do, however, provide access to the line-draw characters which might otherwise not be available using an 8-bit character set).

The best symbol set to use to provide a one-to-one match between the encoded character set used on the sending system, and the target printer, would usually be one of the following (at least, for the Western world):

symbol set 0N = ISO 8859/1
19U = Windows ANSI

ISO 8859/1 is the 8-bit coded character set used by default on many major operating systems in the western world; whilst this is effectively equivalent to 8U for code-points between 0x00 and 0x7f, it is totally different for code-points 0xa0 and above.

19U is a superset of 0N, in that the character range 0x80-0x9f ('undefined control codes' in ISO 8859/1) are used to provide a number of extra graphic characters (such as Euro curency symbol at 0x80, per-mille symbol at 0x89, etc.) which are usually represented using a 16-bit Unicode code-point with a value greater than U+00ff.
 
In regards to downloaded fonts, if I have a prn font file that I downloaded to the printer:

lpr -P <printqueue> <prn font file>

How do I call up this font in my <esc> sequence?

Thanks.
 
Presumably the downloaded font has had an ID# assigned to it as part of the download. Typically this command is right at the beginning of the download.

<esc>*c1234DYOURFONTFILE<esc>*c5F

The entire download would containthe above commands surrounding the fontfile itself. The first command,
<esc>*c####D assigns the font ID which you then use in your application to call the font, where #### is an arbitrary number you assign to the font.

Your application then issues <esc>(####X to use the download as the primary font or <esc>)####X as the secondary font.

The <esc>*c5F at the end declares the downloaded font to be permanent, so it is not deleted by a soft reset. If you are downloading the font as part of the application job stream, then this command is probably not necessary.

Get the PCL5 Tech Ref. There is a whole chapter on this.



Jim Asman
jlasman@telus.net
 
I agree with Jim. If you are doing/editing pcl, your best investment will be a tech manual on PCL. I currently use an
old tech ref manual on the Toshiba Page Laser. It's pretty good. I'm sure there are better ones and I think Toshiba no longer makes Laser printers anyway. Just suffice it to say that the reference manual has been invaluable over the years.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top