On Tuesday 09 July 2002 12:10 pm, Herbert Voss wrote: > Angus Leeming wrote: > > On Tuesday 09 July 2002 9:21 am, Herbert Voss wrote: > >>>In InsetFormula::ascent, descent, width, try adding 5 or so to the > >>>returned value. That'll check that the image is Ok or not. > >> > >>this happens for all images, not only the math-preview. > >>So it must be a in the graphics or xforms stuff > >> > >>Herbert > > > > So just add 5 to the returned value in xformsImage::getWidth, getHeight. > > Does that give you an improved image? If so, dig deeper into xforms. > > here is a patch for the math-preview. For the graphics part > I'm still digging. > > Herbert
I'd rather put this fix into xformsImage::getWidth. What version of xforms are you using? You could specialise with some nasty #ifdef Ie, I (using xforms 0.9999) don't suffer from this problem and don't see why I should be penalised ;-) Is it particular to the ppm loader or general? Eg, if you modify your lyxpreview converter to output XPM files, do they suffer too? Don't forget to modify the converter definition in your preferences file. Angus