Font.GetMetrics(Paint, Paint+FontMetrics) Method

Definition

Retrieve the font metrics information.

[Android.Runtime.Register("getMetrics", "(Landroid/graphics/Paint;Landroid/graphics/Paint$FontMetrics;)V", "", ApiSince=31)]
public void GetMetrics (Android.Graphics.Paint paint, Android.Graphics.Paint.FontMetrics? outMetrics);
[<Android.Runtime.Register("getMetrics", "(Landroid/graphics/Paint;Landroid/graphics/Paint$FontMetrics;)V", "", ApiSince=31)>]
member this.GetMetrics : Android.Graphics.Paint * Android.Graphics.Paint.FontMetrics -> unit

Parameters

paint
Paint

a paint object used for retrieving font metrics.

outMetrics
Paint.FontMetrics

a nullable destination object. If null is passed, this function only retrieve recommended interline spacing. If non-null is passed, this function fills to font metrics to it.

Attributes

Remarks

Java documentation for android.graphics.fonts.Font.getMetrics(android.graphics.Paint, android.graphics.FontMetrics).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to