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!

Can the Line Printer font be sized??

Status
Not open for further replies.

msc0tt

IS-IT--Management
Jun 25, 2002
281
CA
My app needs to hardcopy in a fixed-space font. It also needs to work with any PCL laser printer.
I like the clean look of the Line Printer PCL font "ESC(s0T", as opposed to Courier or Letter Gothic. Can the cpi of this font be adjusted?
-with thanks,
Mike
 
Try Esc(10U Esc(s0p0h12v0s0b0T

it can be resized somewhat h and v values.
Also, (10U should allow the use of box-drawing symbols.
 
Line printer is NOT a scalable font. When you issue the code stated above your are probably getting getting Letter Gothic if it is a sans serif font, although I would expect the printer would substitute Courier. Jim Asman
jlasman@telus.net
 
Ec(10U is the PC-8 symbol set

Ec(s 0T line printer typeface
3T Courier
4T Helvetica
5T times roman
6T Letter Gothic
7T Script
8T Prestige
10T Orator
11T Presentation
14T Futura
15T Palantino
16T ITC Souvenir
17T Optima
52T Univers
56T ITC Tiffany
65T Franklin Gothic
these are base values that can be used with a manufacturer's
value. 4148T for example would be Univer typeface family (52) from Agfa Corporation (4096) version 0.

Ec(s12340T would be Univers typeface from Linotype (12288).
 
I understand how the PCL codes to call a font are derived, but just issuing a "legal" PCL code for a font that is NOT resident in the printer will NOT put it there.

There simply is NO 12pt lineprinter font resident in
a LaserJet. When the printer receives a request for a font that it can't provide, it will substitute according to its nomal priorities.
Jim Asman
jlasman@telus.net
 
Jim is absolutely correct is stating that the standard printer resident 'LinePrinter' font is a bitmap font, and is hence only available in the one fixed size.

It would be selected using something like:

<esc>(0N<esc>(s0p16.67h8.5v0s0b0T

(depending on which symbol set is required - 19U (the Windows ANSI set) is not available with this font).

The thread title is:
&quot;Can the Line Printer font be sized??&quot;
but the question in the initial text is:
&quot;Can the cpi of this font be adjusted?&quot;

The size of the font cannot be changed (as explained by Jim, and paraphrased above) but if all that is required is an adjustment to the Characters Per Inch (horizontal spacing), this can be achieved by using the 'Set Horizontal Motion Index' sequence:

<esc>&k#H

where # represents the required character spacing in 1/120 inch units.

This only works with fixed-pitch fonts (LinePrinter is one); with proportionally-spaced fonts, it only affects the width of the space character.
 
As DansDad pointed out, you can certainly use the Horizontal Motion Index command to change the character spacing, I suspect that the intent in the original post was that to change it to 10 cpi would deliver proportionately larger characters.

By the way DansDad, when do we get to hear from Dan himself? :)
Jim Asman
jlasman@telus.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top