home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / apps / 1507 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.1 KB  |  48 lines

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