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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[FONT] [CMC7] how can I know it escape code?

Status
Not open for further replies.

yp56

Programmer
Aug 30, 2001
83
FR
hello,
I have a True type CMC7 font on my Windows. I have printed a test of this police, and so I think that it have been downloaded into the printer (If I'm wrong tell me).
But I wqnt to know how can I find the escape code to use this police ?


I have a LaserJet6L wich normaly don't have the arial police in resident. However, I can use this police with the code <esc>(<esc>(s1p12v0s0b16602T So I think this font has been downloaded into the printer when I was printed some word documents for example. And when I printed those documents the font Arial has been downloaded and know I can use it.
I would want to do the same with my CMC7 font :) how can I know the escape code (like arial escape code) ?
thanks for all
 
Print out a typeface list! It will show any downloaded fonts.

Jim Asman
jlasman@telus.net
 
Do you how can I do this ? :( I have only one button on my printer.
I'll see the HP site, if you have a tip tells me :)
thank a lot (again ;))
 
from the HP LaserJet 6L documentation :

--------------------------------------------
SOLUTION: No PCL typeface (internal font) list exists on the HP LaserJet 6L, HP LaserJet 1100, and 1100A self-test page, and the printers are not formatted to print a sample list. This document contains the PCL typeface list, as well as the PJL commands required to change the printer's default font (using a DOS editor). Refer to the information
--------------------------------------------
 
I have the CMC7 font in true type and postscript but not in PCL. How can I download this font with an wellknown Id ?
 
You can't download a TrueType font to a LaserJet, other than to flash memory on printers that support it. Your 6L does not, as far as I know.

It needs to be converted into a PCL font. If you have a windows 3.1 computer, you can print a file that contains all of the needed characters to a file, and then edit the newly created file to make it a valid PCL font.

This won't work on 95, 98, 2000 etc. because those printer drivers remap the character positions within the font.

Jim Asman
jlasman@telus.net
 
I don't use the windows driver as far as I develop my own in Java.
Is there a free utility that can transform a ps font or true type font to pcl one ? (I searched but i didn't find...) :c(
How can I do so ? My font is into the printer since I print from a .doc wich used the true type CMC7 font and it printed good. But I can't make a type face listing since my printer doesn't provide this option...
thanks
 
First of all, the font created when you printed the .doc file disappears when printing is complete. Even if it remained, as I said above, the characters have been remapped so that to get &quot;A&quot; may require &quot;M&quot; or another character not present on the keyboard at all.

Go to
There was a program called &quot;tt2bmp&quot; or something similar that was to make a bitmap from a TrueType font. It might work for you. I don't know if it is free or not.

Jim Asman
jlasman@telus.net
 
ok thanks a lot :) I thought taht when I printed my .doc the fonts It used where now resident.
I'll see the link :)
 
I now have a HP 5100 :) which I can see the escape PCL font code :)
And I have a CMC7 font file to send to the printer wich works good :)

So I send the file to the printer like this :

copy /B CMC7.bin PRN

And to use the font I send :

<esc>(9U<esc>(s1p##v0s0b12000T

After I open the cmc7.bin file and i see that the font ID was 14 :
<esc>*c14D

So I try to use the font with this command :
<esc>(14X
to call the downloaded font n°14 and it works good :)

I wonder wich escape command is the best to select the police ?

<esc>(9U<esc>(s1p##v0s0b12000T OR <esc>*c14D

The first let me choose the size but it's a CMC7 font which normaly is standard and the size must be fixed.

thanks :)
 
Moreover the CMC7 must be 8CPI and 8LPI How can I select this ?
 
HP recommends that you call fonts by their characteristics instead of their font ID. Since you are using a proportional spaced font you have to send the height command anyway, also you will have a hard time getting 8CPI since the width of the characters is not constant. You will have to play with the height command to get want you want. Use the larger capital letters for you tests that way you won't go over.

For LPI you can use the line spacing command <esc>&l8D for 8LPI or you can use the VMI command.

have fun,
 
It is not certain that the downloaded font is scalable, but it very well might be. That will depend on the driver.

If you want to email the file to me I will have a look at it.


Jim Asman
jlasman@telus.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top