|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 878 (0x36e) Types: TextFile Names: »magfactor.c«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« └─⟦ca79c7339⟧ └─⟦this⟧ »DVIware/laser-setters/mctex/lib/magfactor.c«
/* * Copyright (c) 1987, 1989 University of Maryland * Department of Computer Science. All rights reserved. * Permission to copy for any purpose is hereby granted * so long as this copyright notice remains intact. */ /* * Convert a magnification factor to floating point. This is used in * conjunction with the FONT_SLOP stuff to try to get the file names * right, and may also be used by DVI reading programs to get slightly * more accurate values for (mag/1000.0). */ double DMagFactor(mag) int mag; { switch (mag) { case 1095: /* stephalf */ return (1.095445); case 1315: /* stepihalf */ return (1.314534); case 2074: /* stepiv */ return (2.0736); case 2488: /* stepv */ return (2.48832); case 2986: /* stepiv */ return (2.985984); default: /* remaining mags have been ok */ return ((double) mag / 1000.); } /* NOTREACHED */ }