@Override public void render (Canvas canvas, TextLayout text, int textColor,
boolean underlined, float x, float y) {
canvas.save();
if (underlined) {
IRectangle bounds = text.bounds();
float sx = x + bounds.x() + 1, sy = y + bounds.y() + bounds.height() + 2;
canvas.setFillColor(outlineColor).fillRect(sx-1, sy-1, bounds.width()+3, 3);
canvas.setFillColor(textColor).fillRect(sx, sy, bounds.width(), 1);
}
canvas.setFillColor(outlineColor);
canvas.fillText(text, x+0, y+0);