On Monday 08 July 2002 9:04 am, Andre Poenitz wrote: > On Mon, Jul 08, 2002 at 09:45:51AM +0200, Herbert Voss wrote: > > Here is a patch to enable the user to get the right > > font size for the previews. > > And we can't determine that factor from other settings? > > Andre'
Apparently we can. See below for a snippet from an earlier mail from David. I'd rather have someone have a go at this rather than introduce "fudge" factors. I think I'm going to be quite busy this week, so Herbert if you're interested would you like to have a go? Angus > Two points to address: > > 1. The preview lettering is not the same size as that of the rest of LyX. I > believe that's because I've misunderstood something ;-) > > I'm using > \screen_dpi 95 > \screen_zoom 130 > Running "gs -r124.5" (= 95 * 130 / 100) gives the result shown. > > Anybody got any idea about this stuff? More complicated. From preview-latex: You take the screen resolution, multiply by the design size of the screen font (measured in points of real screen estate), and divide by the design size of the default font used for generating the preview, usually to be gleaned from the \documentclass command. That is, for \documentclass{article}, divide by 10pt, for \documentclass{scrartcl}, divide by 11pt, for \documentclass{scrlettr}, divide by 12pt, for \documentclass[xxpt]{anything}, divide by xxpt.