Android Guides | Samples

Android.Graphics.Paint.FontMetrics Class

Class that describes the various metrics for a font at a given text size.

See Also: Paint+FontMetrics

Syntax

[Android.Runtime.Register("android/graphics/Paint$FontMetrics", DoNotGenerateAcw=true)]
public class Paint.FontMetrics : Object

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.Paint.FontMetrics are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

AscentSingle. The recommended distance above the baseline for singled spaced text.
BottomSingle. The maximum distance below the baseline for the lowest glyph in the font at a given text size.
DescentSingle. The recommended distance below the baseline for singled spaced text.
LeadingSingle. The recommended additional space to add between lines of text.
TopSingle. The maximum distance above the baseline for the tallest glyph in the font at a given text size.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.