On Thu, Dec 07, 2006 at 04:03:27PM +0100, Enrico Forestieri wrote: > + QRect const & r = metrics.boundingRect(c); > + // Qt/Win 3.2.1nc (at least) corrects the GetGlyphOutlineA|W y > + // value by the height: (x, -y-height, width, height). > + // Other versions return: (x, -y, width, height) > +#if defined(Q_WS_WIN) && (QT_VERSION == 0x030201)
Qt 3.2.1? > + int const w = -r.top() - r.height(); > +#else > + int const w = -r.top(); > +#endif > +#if defined(USE_LYX_FONTCACHE) > + ascentcache[val] = w; > +#endif > + return w; > +} Andre'
