home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.apps
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!manuel.anu.edu.au!sserve!sserve.cc.adfa.oz.au!jrm
- From: jrm@zeta.ma.adfa.oz.au (John R Marley)
- Subject: Re: Xfig/fig2dev produce wrong size PostScript
- In-Reply-To: jrm@beta.ma.adfa.oz.au's message of Wed, 18 Nov 1992 00: 27:44 GMT
- Message-ID: <JRM.92Nov18183124@zeta.ma.adfa.oz.au>
- Sender: news@sserve.cc.adfa.oz.au
- Organization: Maths Dept., A.D.F.A., Canberra, Australia
- References: <JRM.92Nov18102744@beta.ma.adfa.oz.au>
- Date: Wed, 18 Nov 1992 08:31:24 GMT
- Lines: 35
-
-
- Earlier today I wrote complaining about using metric measurements in xfig:
-
- >>>>> On Wed, 18 Nov 1992 00:27:44 GMT, jrm@beta.ma.adfa.oz.au (John R Marley) said:
- > .. stuff about xfig ...
- > All figures drawn with metric dimensions come out shrunk by 0.95. This is
- > ... more stuff ...
-
- > If I get fed up enough I might have another go... But until then, does anyone
- > know how to fix this?
-
- OK, I got fed up enough to discover the cause. It's because xfig decided to
- use 80 pixels per inch, and to use integers to keep track of coordinates. Now
- to calculate pixels per cm, you do 80/2.54 == 31.4961, which is not an integer.
- xfig chose to use 30 instead because it is an integer and it's a multiple of
- five (which is necessary to make the ruler tick marks work). Now, 30 is
- smaller than 31.4961, but by how much? 30/31.4961 == 0.9525, which is very
- close to the 0.95 I mentioned before. Voila! Qed.
-
- Now I know why, but I don't know how to fix it. I could try changing pixels
- per inch to 76 (assuming pix/cm = 30, pix/in = 76.2) and not use imperial and
- see what I get. Presumably, all dimensions should now be scaled by 0.9974
- (76/76.2) which is pretty close to 1.0 .
-
- > Thanks in advance,
-
- Anytime! 8^)
-
- Oh, if anyone has a better solution, please let me know! Thanks.
-
- --
- Trust in the LORD with all your heart and | John Marley
- lean not on your own understanding; in all -+- j-marley@adfa.edu.au
- your ways acknowledge him, and He will make | Programmer & Sys Admin
- your paths straight. - Proverbs 3:5-6 | A.D.F.A. Maths Dept.
-