DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T m

⟦df2630e52⟧ TextFile

    Length: 869 (0x365)
    Types: TextFile
    Names: »magfactor.c«

Derivation

└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
    └─⟦this⟧ »./DVIware/laser-setters/umd-dvi/lib/magfactor.c« 

TextFile

/*
 * Copyright (c) 1987 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 */
}