> I came across this bug because one of my users used the pixpt metafont
> mode (don't ask me why) for xdvi. The important feature of this mode is:
> 
>    mode_param (pixels_per_inch, 72.27)
...
> The problem is that mf calculates the resolution (dpi) to 150
> because 2*72.27+5=149.54 is rounded to 150. mktexpk uses only integers
> and calculates the resolution to be 149 - hence it doesn't want the newly

The problem is already in the dvi drivers, e.g. dvips:
  $ dvips -mode pixpt -D 72.27 x -o
  This is dvips(k) 5.86d Copyright 1999 Radical Eye Software (www.radicaleye.com)
  ' TeX output 2001.08.07:1141' -> x.ps
  kpathsea: Running mktexpk --mfmode pixpt --bdpi 72 --mag 2+14/72 --dpi 158 cmr10

The driver expects to get cmr10.158pk, but mf produces cmr10.159pk. I
think (did not check the source) that the dvi drivers work with integers.

> PS! I fixed this (temporarily) by changing the mode to use 72 pixels per
>     inch and regenerate 'mf.base'.

That's what I would do, too.

Thomas

Reply via email to