Font substitutions

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Font substitutions

Post by gtisdale »

Larry just brought up the subject of font subsitutions and NWP.

A number of us have noticed that we often make a font substitution like "[TINY]" and it has no effect on our print job.

This is becasue fonts that are proportional are governed by a vertical parameter "V" and fonts that are fixed width are governed by a horizontal parameter "H". The substitutions in PRINTER.SYS deal with only one of these at a time. Consequently if we are using a proportinal font and issue a [CPI=10] substitution nothing happens.

The approximate relation between H and V is H=163.3/V

To correct your PRINTER.SYS file then you need to have each substitution address BOTH the H and V parameters. Following the HP convention, letters within a substitution string are lower case and only the last letter is a Capital. BR NWP printing respects this convention and PCL printing requires it. Tthe corrected substitution strings that you should make in your PRINTER.SYS file would then be:

H V SUBSTITUTION PRINTER.SYS
23 7 [TINY] \E(s23h7V
20 8 [SMALL][CPI=20] \E(s20h8V
17 10 [CPI=17] \E(s17h10V
16 10 [LITTLE] \E(s16h10V
15 11 [CPI=15] \E(s15h11V
14 12 [MEDIUM] \E(s14h12V
12 14 [ESSAY][CPI=12] \E(s12h14V
10 16 [CPI=10] \E(s10h16V
9 18 [LARGE] \E(s9h18V
7 23 [BIG] \E(s7h23V
5 33 [JUMBO] \E(s5h33V
2 96 [GARGANTUAN] \E(s2h96V

Hope this helps.

FNGeorge
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

This sounds like an update that should be made to the "Official Printer.sys".
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Post by John »

The wiki states "Printer.Sys is a shared project in which standardized printer substitutions are shared by everyone who uses it. Printer.sys was originally developed by Gabriel Bakker." But it does not state who maintains it or where it is available. My guess would be that Gordon maintains it and that it's available from the ADS ftp site.
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

Printer.sys is available in the DLL_DIST/PRINTING directory of the ADS FTP site.

Posting to this site is restricted so Gordon would control any updates tothe file.

FNGeorge
Post Reply