+ pain.fillRectangle(int(x + tmpx), tmpvar, wid,
+ lyxfont::ascent('i', font) -
+ lyxfont::ascent('x', font) - 1,
+ LColor::background);
+ // the five lines below is a simple hack to
+ // make the display of accent 'i' and 'j'
+ // better. It makes the accent be written
+ // closer to the top of the dot-less 'i' or 'j'.
+ char tmpic = ic; // store the ic when we
+ ic = 'x'; // calculates the ascent of
+ asc = ascent(pain, font); // the dot-less version (here: 'x')
+ ic = tmpic; // set the orig ic back
+ y = baseline - asc; // update to new y coord.