for (; g != gend; g++)
if (! g->g.measured)
{
- continue;
if (g->g.code == MCHAR_INVALID_CODE)
{
g->g.lbearing = xfont->max_bounds.lbearing << 6;
}
}
g->g.yadv = 0;
- g->g.ascent += rfont->baseline_offset << 6;
- g->g.descent -= rfont->baseline_offset << 6;
+ g->g.ascent += rfont->baseline_offset;
+ g->g.descent -= rfont->baseline_offset;
g->g.measured = 1;
}
}
if (from == to)
return;
- baseline_offset = rface->rfont->baseline_offset;
+ baseline_offset = rface->rfont->baseline_offset >> 6;
if (region)
gc = set_region (rface->frame, gc, region);
XSetFont (display, gc, ((XFontStruct *) rface->rfont->fontp)->fid);
XftDrawChange (xft_draw, (Drawable) win);
XftDrawSetClip (xft_draw, (Region) region);
- y -= rfont->baseline_offset;
+ y -= rfont->baseline_offset >> 6;
glyphs = alloca (sizeof (FT_UInt) * (to - from));
for (last_x = x, nglyphs = 0, g = from; g < to; x += g++->g.xadv)
{