Build 1.0_r1(from source)

android.graphics
Class Paint.FontMetrics

java.lang.Object
  extended by android.graphics.Paint.FontMetrics
Enclosing class:
Paint

public static class Paint.FontMetrics
extends Object

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().


Field Summary
 float ascent
          The recommended distance above the baseline for singled spaced text.
 float bottom
          The maximum distance below the baseline for the lowest glyph in the font at a given text size.
 float descent
          The recommended distance below the baseline for singled spaced text.
 float leading
          The recommended additional space to add between lines of text.
 float top
          The maximum distance above the baseline for the tallest glyph in the font at a given text size.
 
Constructor Summary
Paint.FontMetrics()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

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


ascent

public float ascent
The recommended distance above the baseline for singled spaced text.


descent

public float descent
The recommended distance below the baseline for singled spaced text.


bottom

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


leading

public float leading
The recommended additional space to add between lines of text.

Constructor Detail

Paint.FontMetrics

public Paint.FontMetrics()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature