public class TextUtil {
public static int getFontHeight(float fontSize) {
Paint m_paint = new Paint();
m_paint.setTextSize(fontSize);
FontMetrics fm = m_paint.getFontMetrics();
return (int) Math.ceil(fm.descent - fm.top) + 2;
}
}
public class TextUtil {
public static int getFontHeight(float fontSize) {
Paint m_paint = new Paint();
m_paint.setTextSize(fontSize);
FontMetrics fm = m_paint.getFontMetrics();
return (int) Math.ceil(fm.descent - fm.top) + 2;
}
}