I need to get a ascender/descender and x-height..
By using following code I can find the descender and the total height:
descender_height = paint.des
This is what worked for me:
Paint.FontMetrics fm = paint.getFontMetrics(); int totalHeight = (int)(fm.bottom - fm.top + .5f);