public static class

Paint.FontMetrics

extends Object
java.lang.Object
   ↳android.graphics.Paint.FontMetrics

Class Overview

Class that describes the various metrics for a font at a given text size. Remember, Y values increase going down, so those values will be positive, and values that measure distances going up will be negative. This class is returned by getFontMetrics().

Summary

Fields
public floatascentThe recommended distance above the baseline for singled spaced text.
public floatbottomThe maximum distance below the baseline for the lowest glyph in the font at a given text size.
public floatdescentThe recommended distance below the baseline for singled spaced text.
public floatleadingThe recommended additional space to add between lines of text.
public floattopThe maximum distance above the baseline for the tallest glyph in the font at a given text size.
Public Constructors
Paint.FontMetrics()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public float ascent

Since: API Level 1

The recommended distance above the baseline for singled spaced text.

public float bottom

Since: API Level 1

The maximum distance below the baseline for the lowest glyph in the font at a given text size.

public float descent

Since: API Level 1

The recommended distance below the baseline for singled spaced text.

public float leading

Since: API Level 1

The recommended additional space to add between lines of text.

public float top

Since: API Level 1

The maximum distance above the baseline for the tallest glyph in the font at a given text size.

Public Constructors

public Paint.FontMetrics ()

Since: API Level 1