[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: "Kerning?"



** Reply to note from "R Tennenbaum"  Mon, 17 Feb 97 21:34:00 -0400

> It would have been nice to get some sort of dynamic embedded command
> to do the job, but I ended up changing the printer files. For anyone
> else interested who is as ignorant as I in this department, I added a
> new MD in the printer file (under MD RV), and then, in the
> HPDJ500.PRN file, as per Mr. Holmgren, the following line under
> ATTRIBUTE DEFINITIONS, corresponding to the new mode:
> 	AT#{27}*p+6X
> while in the Postscript printer file:
> 	AT#) s 2 0 r (

Jeez, you know, when you were fiddling with that PS AT> and AT< command, I
was thinking to myself, shouldn't it be AT# a la PCL? But I figured Annie
knows her PS stuff, and I don't know diddly...

But I thought Annie said to me, in response to my question, that you *can*
have a dynamic intercharacter space command under PS? I specifically asked
her about that!

Rafe, can you parse the PS command for me, please, just to give some insight
into how PS drivers work? I.e., what are ) and (, what are s, 2, 0, and r?

Lastly, dynamic intercharacter spacing is very easy in PCL+XPL. Divide the
point size by a space constant. For example, suppose you like 1/50th of an
inch -- 6 dots -- at 12 points. So that would be 0.5 dots per one point of
measurement. Just get the current points with  into S/G 01,
then multiply by 0.5, then perform a rounding procedure, then put a PI
command -- works like a charm. Try RUNning this to turn on _dynamic_
intercharacter spacing, and hit Escape to turn it off (works like an attribute).

XPLeNCODE v1.9
b-gin SPACE.PM
{<}SX01,{<}VA}*.5{>};*;[cr|lf]{<}SX02,@INT({<}PV01{>
}){>}{<}IF{<}PV02{>}+1<={<}PV01{>}+.5{>}{<}SX02,{<}PV02{>}+1{
>}{<}EI{>}{<}SX01,"{<}PI{27}*p+"+{<}IS02{>}+"X{>}"{>};*;[cr|l
f]{<}LBA{>}{<}RC{>}{<}IF{<}VA$KC{>}>1{>}{<}PV01{>}{<}GLA{>}{<
}EI{>}{<}EX{>}[cr|lf]
-nd
XPLeNCODE

Here it is in XXcode:

Moronic UUenCoder for XyWrite RexXPL v1.0 R.J.Holmgren 9/22/96
begin 644 SPACE.PM
MKE-8,#$LKE9!/%!475-:,:\J+C6O.RH[#0JN4U@P,BQ`24Y4**Y05C`QKRFO
MKDE&KE!6,#*O*S$\/:Y05C`QKRLN-:^N4U@P,BRN4%8P,J\K,:^N14FOKE-8-
M,#$L(JY021LJ<"LB*ZY)4S`RKRLB6*\BKSLJ.PT*KDQ"0:^N4D.OKDE&KE9!
=)$M#KSXQKZY05C`QKZY'3$&OKD5)KZY%6*\-"AH`
`
end

Did you try the HPDJ560C.PRN file? Which DeskJet do you have?


-----------
Robert Holmgren
holmgren@xxxxxxxx
-----------