home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / libtex / convstruct.h < prev    next >
Text File  |  1990-07-10  |  2KB  |  39 lines

  1. /*
  2.  * Copyright 1989 Chris Torek
  3.  *
  4.  * Permission to use, copy, modify, distribute, and sell this software
  5.  * and its documentation for any purpose is hereby granted without fee,
  6.  * provided that the above copyright notice appear in all copies and that
  7.  * both that copyright notice and this permission notice appear in
  8.  * supporting documentation, and that the name of Chris Torek or M.I.T.
  9.  * not be used in advertising or publicity pertaining to distribution of
  10.  * the software without specific, written prior permission.  Chris
  11.  * Torek and M.I.T. make no representations about the suitability of
  12.  * this software for any purpose.  It is provided "as is" without express
  13.  * or implied warranty.
  14.  *
  15.  * CHRIS TOREK AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  16.  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17.  * FITNESS.  IN NO EVENT SHALL CHRIS TOREK OR M.I.T. BE LIABLE FOR ANY
  18.  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  19.  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  20.  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  * 
  23.  * Original Author:
  24.  *     Chris Torek
  25.  *     Dept. of Computer Science
  26.  *     Univ. of Maryland
  27.  *     chris@cs.umd.edu
  28.  */ 
  29.  
  30. typedef struct conversion {
  31.     double    c_fromsp;    /* multiplier to convert from scaled points */
  32.     double    c_tosp;        /* multiplier to convert to scaled points:
  33.                    could divide by c_fromsp, but this should
  34.                    be faster and more accurate */
  35.     double    c_mag;        /* the magnification this conversion
  36.                    represents; mainly for GetFont() */
  37.     double    c_dpi;        /* dpi (should be pixels per point?) */
  38. } Conv;
  39.