String shortname = p.name;
if(p.name.length()>3)
{
shortname = p.name.substring(0, 3);
}
<BUG>paint.getTextBounds(shortname, 0,shortname.length(), textBounds);

paint.setTextSize(twenty/2);

canvas.drawText(shortname, scrPoint.x, scrPoint.y + textBounds.height()/2- ten/2 , paint);

paint.setTextSize(twenty);
</BUG>
}

String shortname = p.name;
if(p.name.length()>3)
{
shortname = p.name.substring(0, 3);
}
blackpaint.getTextBounds(shortname, 0,shortname.length(), textBounds);
blackpaint.setTextSize(twenty/2);
canvas.drawText(shortname, scrPoint.x, scrPoint.y + textBounds.height()/2- ten/2 , blackpaint);
blackpaint.setTextSize(twenty);
}
