if (g != null) {
int top = y + g.max_ascent - g.baseline + g.max_descent;
if (g.p != null)
- buf.drawPictureAlphaOnly(g.p, x, top + 4,
+ buf.drawPictureAlphaOnly(g.p, x, top,
clipx, clipy, clipx + clipw, clipy + cliph, textcolor);
x += g.advance;
} else {
} });
} else {
textwidth += g.advance;
- textheight = g.max_ascent;
+ textheight = max(textheight, g.max_ascent + g.max_descent);
}
}
} catch (Exception e) {