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!

[newbie][FONT]What's wrong with my font selection ?

Status
Not open for further replies.

yp56

Programmer
Aug 30, 2001
83
FR
hye,
I'm new with PCL language. I discover it 2 days ago, so...
In some doc I see that to set the primary font the command was : <ESC>(s#T where # is the ID of the font.
I trying my command on a HP LaserJet 6L, and in a doc I found that it has those font in resident :
ID name
4101 CG Times
4148 Univers
4099 Courrier
4102 Letter Gothic
4362 Albertus
4168 Antique Olive
4116 Coronet
6826 Wingdings

So where I tried the escape command <ESC>(s4148T I print with a gothic font (I think so...), but this is the only font i succed to have.
If I test <ESC>(s6826T or another else the font doesn't change :(
Why ? I really dont understand why does it work with th gothic font and not with the others...
thanks for all :)
 
In this forum I found this escape sequence to set the Arial font :
<ESC>(s1p12v0s0b16602T

there is what I understand :
<ESC>(s : change de primary font
1p : the type of caracter spacing
12v : the height of caracters
0s : the style
0b : the stroke weight
16602T : the type face

What I don't understand is that the font ID 16602 souldn't be in resident in the LaserJet 6L. Moreover, when I delete the &quot;16602T&quot; of the sequance and send &quot;<ESC>(s1p12v0s0B&quot; it does the same...
I someone could explain me why ? :)
thanks a lot
 
In many instances, <esc>(s###T will NOT give you the typeface that you specified. If you start out with default fixed pitch font, just asking for a proportional typface isn't going to get it for you. The printer is still looking for a fixed pitch font.

If you want 10 pt Univers, then specify ALL the parameters.

<esc>(s1p10v0s0b4148T

Print out a typeface listing from your printer, and that should give you the COMPLETE escape sequences for all the resident fonts.

The print will substitute a font if your font request is ambiguous or not available and that is why you saw the same typeface for both selection sequences.


Jim Asman
jlasman@telus.net
 
ok thanks jlasman :) My problem is how to know the caracteristics of a type face ?

I found a file with all escape command for lots of fonts and that's work well now :)
I send it like this to the printer (I replace <esc> by 27/0x1b)
It's great :)
-------------------------------------------
<esc>(<esc>(s1p12v0s0b4362T Albertus
<esc>(<esc>(s1p12v0s4b4362T Albertus Extra Bold
<esc>(<esc>(s1p12v0s3b4168T Antique Olive Bold
<esc>(<esc>(s1p12v1s0b4168T Antique Olive Italic
<esc>(<esc>(s1p12v0s1b4168T Antique Olive Medium
<esc>(<esc>(s1p12v0s0b16602T Arial
<esc>(<esc>(s1p12v0s3b16602T Arial Bold
<esc>(<esc>(s1p12v1s3b16602T Arial Bold Italic
<esc>(<esc>(s1p12v1s0b16602T Arial Italic
<esc>(<esc>(s1p12v0s0b4113T CG Omega
<esc>(<esc>(s1p12v0s3b4113T CG Omega Bold
<esc>(<esc>(s1p12v1s3b4113T CG Omega Bold Italic
<esc>(<esc>(s1p12v1s0b4113T CG Omega Italic
<esc>(<esc>(s1p12v0s0b4101T CG Times
<esc>(<esc>(s1p12v0s3b4101T CG Times Bold
<esc>(<esc>(s1p12v1s3b4101T CG Times Bold Italic
<esc>(<esc>(s1p12v1s0b4101T CG Times Italic
<esc>(<esc>(s1p12v4s3b4140T Clarendon Bold Condensed
<esc>(<esc>(s1p12v1s0b4116T Coronet Italic
<esc>(<esc>(s0p12h0s0b4099T Courier
<esc>(<esc>(s0p12h0s3b4099T Courier Bold
<esc>(<esc>(s0p12h1s3b4099T Courier Bold Italic
<esc>(<esc>(s0p12h1s0b4099T Courier Italic
<esc>(<esc>(s1p12v0s0b4197T Garamond Antiqua
<esc>(<esc>(s1p12v0s3b4197T Garamond Antiqua Halbfett
<esc>(<esc>(s1p12v1s3b4197T Garamond Antiqua HalbfettKursiv
<esc>(<esc>(s1p12v1s0b4197T Garamond Antiqua Kursiv
<esc>(<esc>(s0p12h0s0b4102T Letter Gothic
<esc>(<esc>(s0p12h0s3b4102T Letter Gothic Bold
<esc>(<esc>(s0p12h1s0b4102T Letter Gothic Italic
<esc>(8U<esc>(s0p16.67h8.5v0s0b0T Line Printer (Roman-8)
<esc>(0N<esc>(s0p16.67h8.5v0s0b0T Line Printer (Latin-1)
<esc>(10U<esc>(s0p16.67h8.5v0s0b0T Line Printer (PC-8)
<esc>(11U<esc>(s0p16.67h8.5v0s0b0T Line Printer (PC-8 D/N)
<esc>(12U<esc>(s0p16.67h8.5v0s0b0T Line Printer (PC-850)
<esc>(1U<esc>(s0p16.67h8.5v0s0b0T Line Printer (Legal)
<esc>(<esc>(s1p12v0s0b4297T Marigold
<esc>(19M<esc>(s1p12v0s0b16686T Symbol
<esc>(<esc>(s1p12v0s0b16901T Times New Roman
<esc>(<esc>(s1p12v0s3b16901T Times New Roman Bold
<esc>(<esc>(s1p12v1s3b16901T Times New Roman Bold Italic
<esc>(<esc>(s1p12v1s0b16901T Times New Roman Italic
<esc>(<esc>(s1p12v0s3b4148T Univers Bold
<esc>(<esc>(s1p12v4s3b4148T Univers Bold Condensed
<esc>(<esc>(s1p12v5s3b4148T Univers Bold Condensed Italic
<esc>(<esc>(s1p12v1s3b4148T Univers Bold Italic
<esc>(<esc>(s1p12v0s0b4148T Univers Medium
<esc>(<esc>(s1p12v4s0b4148T Univers Medium Condensed
<esc>(<esc>(s1p12v5s0b4148T Univers Medium Condensed Italic
<esc>(<esc>(s1p12v1s0b4148T Univers Medium Italic
<esc>(579L<esc>(s1p12v0s0b31402T Wingdings
-----------------------------------------------------
 
thank you UncleRick ! :) A doc for beginner, that's great ! I have the HP docs and others found on the web but they are enormous :)
(and it's all in english/american and i'm not an english/american guy...)
 
Downloaded fonts aside, understand that you can only print fonts that are resident in the printer.

If you issue a completely &quot;legal&quot; escape sequence for a font that is NOT in the printer, you won't get it. The printer will substitute.

The escape sequences only select a font, they do NOT create the font. The typeface listing from your printer gives you ALL of the possible fonts.

Jim Asman
jlasman@telus.net
 
I know this, but I seem difficult to download font from my PC to the printer. I have the commande :

<Esc>E : reset printer
<Esc>*c1D : set ID font à 1
< ;;;;;; font descriptor ;;;;;>
<Esc>*c5F : set the font resident
<Esc>*c2D : second font
etc ...

but I don't know what is the 'font descriptor' Can I upload my windows font to the printer ?

How can I list all the font resident in my printer ? is there an escape command which print all the font ? Or something else ?

thanks :)
 
You will have to look in the manual for your printer to find out how to get a typeface listing. Depending on the printer, it might be from a menu on the printer display, or on the less expensive models it is probably a combination of holding buttons down while you power up the printer.

Your windows fonts are TrueType fonts, NOT PCL fonts. They are not usable directly.

You would get a downloadable font from an outside source. It would contain the descriptor as well as the character data.

Jim Asman
jlasman@telus.net
 
Fot the type face listing, I have the manual :
Which tells us wich fonts are resident or not. But I dont understand since I can print all the font I wrote into the previous message. The doc tells me that I shouldn't have certains fonts. Maybe it is because the font have already been downloaded to the printer (for example when i printed from word) ? Is it possible ?

So I must have PCL font..ok ! Where can I download, buy those fonts ?

thanks you very much...
 
When you print from a windows application like WORD, the windows printer driver is creating soft fonts from the TrueType fonts you have and downloading them to the printer as needed.

There are a number of places on the web no doubt that sell soft fonts.

What is it you are trying to do and is there a particular font that you are looking for?





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

Part and Inventory Search

Sponsor

Back
Top