[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: design size in DVI



Laurent Siebenmann writes:

>> (2) Does/should anybody or anything currently pay attention to
>> the design size entry?

Yes, certainly, I found 27 references to it in my own DVI driver family
code, and here is a sample snippet of how it is used:

    /* Compute the font magnification from the at_size and design_size
       specified in the DVI file, further modified by TeX-time and
       DVI-time magnifications, and output device resolution.  We need
       this information in openfont() which is called below. */
   tfontptr->font_mag = (UNSIGN32)(
        (actfact(MAGSIZE((double)tfontptr->at_size/
            (double)tfontptr->design_size)) *
        ((double)runmag/(double)dvimag) *
        actfact(mag) *
        (double)RESOLUTION * 5.0) + 0.5);

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: beebe@math.utah.edu  -
- Department of Mathematics, 322 INSCC                   beebe@acm.org        -
- 155 S 1400 E RM 233                                    beebe@ieee.org       -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  - 
-------------------------------------------------------------------------------