[comp.text.tex] METAFONT Help - vboxes too big?

pschmidt@athena.mit.edu (Peter H Schmidt) (09/16/90)

Hello-

I tried to post this a couple weeks ago, but never saw it get out to
the world, and since I haven't received any replies, I'm re-posting.
Sorry if any of you have seen this before.

The system: AT&T Unix PC (SysV, Unix PC vers 3.51m), with Panasonic
KX-P1124 dot-matrix printer (emulates IBM ProPrinter and Epson
LQ-2400).  TeX version 2.93, METAFONT version 1.5, base dvieps version
2.11.

The problem: the fonts and driver are customized for a different Epson
compatible with a different aspect ratio (216/240) than the Panasonic
(180/240).  This means that the letters come out way too tall, and the
line spacing is too big.

The attempted solution: turn dvieps into dvipan, by changing all
instances of 216 into 180 (intelligently, not just
search-and-replace), and recompile fonts using new localfont as
follows:

%----------------
% Mode definition describing 240 by 180 dpi Epson (Panasonic) printers.
mode_def panasonic =
  proofing:=0;
  fontmaking:=1;
  tracingtitles:=0;
  pixels_per_inch:=240;
  aspect_ratio:=180/240;
  blacker:=0;
  o_correction:=.4;
  fillin:=0;
enddef;

base_version:=base_version&"/panasonic";
localfont:=panasonic;
%-----------------

The problem: the letters of the (CM) fonts now print out fine, but the
interline spacing is too big. Using a sizing gauge, I determined that
10pt fonts print with 16pts base-to-base spacing, instead of the
correct 12pt.  Its as if the vboxes of the letters are all too big.

The debugging attempts so far: I compiled up dviupc (a previewer for
the Unix PC that was based on dvisun), and it displays the same
problem on the screen.  This leads me to believe that the problem lies
in the fonts themselves, not dvipan.  Actually, what makes me really
suspicious is that the ratio of 12pt/16pt is the same as
180dpi/240dpi, i.e. it seems like cmmf computed vppp wrong, not
scaling hppp by aspect_ratio (like the MF book claims it should).  But
if that were the case, wouldn't the letters be the wrong size too?

Caveats: my knowledge of TeX/MF is limited.  I have the books, and
I've searched through them trying to fix this, but I haven't worked
all the exercises :-)  I need help, though, since I need to start
turning in papers soon.  So please, if you have an idea of what the
problem might be, drop me a line!

Regards -- Peter

--
Peter H. Schmidt	| ...harvard!cayman!winter!pschmidt
3 Colonial Village, #10	| winter!pschmidt@cayman.com
Arlington, MA  02174	| -- Speaking for myself.