Lines Matching defs:fm
28 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) {
30 if (fm != null) {
31 sWorkPaint.getFontMetricsInt(fm);
34 final int textHeight = fm.descent - fm.ascent;
36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin;
37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2)
39 fm.top = fm.ascent;
40 fm.bottom = fm.descent;
45 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) {
46 setupFontMetrics(fm, paint);