Language

Paint.GetFontMetricsInt Method

Definition

Overloads

Name Description
GetFontMetricsInt()

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

GetFontMetricsInt(Paint+FontMetricsInt)

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

GetFontMetricsInt(ICharSequence, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

Returns the font metrics value for the given text.

GetFontMetricsInt(Char[], Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

Returns the font metrics value for the given text.

GetFontMetricsInt(String, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

GetFontMetricsInt()

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

[Android.Runtime.Register("getFontMetricsInt", "()Landroid/graphics/Paint$FontMetricsInt;", "GetGetFontMetricsIntHandler")]
public virtual Android.Graphics.Paint.FontMetricsInt? GetFontMetricsInt();
[<Android.Runtime.Register("getFontMetricsInt", "()Landroid/graphics/Paint$FontMetricsInt;", "GetGetFontMetricsIntHandler")>]
abstract member GetFontMetricsInt : unit -> Android.Graphics.Paint.FontMetricsInt
override this.GetFontMetricsInt : unit -> Android.Graphics.Paint.FontMetricsInt

Returns

the font's interline spacing.

Attributes

Remarks

Java documentation for android.graphics.Paint.getFontMetricsInt(android.graphics.FontMetricsInt).

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

GetFontMetricsInt(Paint+FontMetricsInt)

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

[Android.Runtime.Register("getFontMetricsInt", "(Landroid/graphics/Paint$FontMetricsInt;)I", "GetGetFontMetricsInt_Landroid_graphics_Paint_FontMetricsInt_Handler")]
public virtual int GetFontMetricsInt(Android.Graphics.Paint.FontMetricsInt? fmi);
[<Android.Runtime.Register("getFontMetricsInt", "(Landroid/graphics/Paint$FontMetricsInt;)I", "GetGetFontMetricsInt_Landroid_graphics_Paint_FontMetricsInt_Handler")>]
abstract member GetFontMetricsInt : Android.Graphics.Paint.FontMetricsInt -> int
override this.GetFontMetricsInt : Android.Graphics.Paint.FontMetricsInt -> int

Parameters

Returns

the font's interline spacing.

Attributes

Remarks

Java documentation for android.graphics.Paint.getFontMetricsInt(android.graphics.FontMetricsInt).

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

GetFontMetricsInt(ICharSequence, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

Returns the font metrics value for the given text.

[Android.Runtime.Register("getFontMetricsInt", "(Ljava/lang/CharSequence;IIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_Ljava_lang_CharSequence_IIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)]
public virtual void GetFontMetricsInt(Java.Lang.ICharSequence text, int start, int count, int contextStart, int contextCount, bool isRtl, Android.Graphics.Paint.FontMetricsInt outMetrics);
[<Android.Runtime.Register("getFontMetricsInt", "(Ljava/lang/CharSequence;IIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_Ljava_lang_CharSequence_IIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)>]
abstract member GetFontMetricsInt : Java.Lang.ICharSequence * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit
override this.GetFontMetricsInt : Java.Lang.ICharSequence * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
ICharSequence

a text to be measured. This value cannot be null.

start
Int32

a starting offset in the text. Value is 0 or greater

count
Int32

a length of the text to be measured. Value is 0 or greater

contextStart
Int32

a context starting offset in the text. Value is 0 or greater

contextCount
Int32

a length of the context to be used. Value is 0 or greater

isRtl
Boolean

true if measuring on RTL context, otherwise false.

outMetrics
Paint.FontMetricsInt

the output font metrics. This value cannot be null.

Attributes

Remarks

Returns the font metrics value for the given text. If the text is rendered with multiple font files, this function returns the large ascent and descent that are enough for drawing all font files. The context range is used for shaping context. Some script, e.g. Arabic or Devanagari, changes letter shape based on its location or surrounding characters.

Android reference for android.graphics.Paint.getFontMetricsInt.

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

GetFontMetricsInt(Char[], Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

Returns the font metrics value for the given text.

[Android.Runtime.Register("getFontMetricsInt", "([CIIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_arrayCIIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)]
public virtual void GetFontMetricsInt(char[] text, int start, int count, int contextStart, int contextCount, bool isRtl, Android.Graphics.Paint.FontMetricsInt outMetrics);
[<Android.Runtime.Register("getFontMetricsInt", "([CIIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_arrayCIIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)>]
abstract member GetFontMetricsInt : char[] * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit
override this.GetFontMetricsInt : char[] * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
Char[]

a text to be measured. This value cannot be null.

start
Int32

a starting offset in the text. Value is 0 or greater

count
Int32

a length of the text to be measured. Value is 0 or greater

contextStart
Int32

a context starting offset in the text. Value is 0 or greater

contextCount
Int32

a length of the context to be used. Value is 0 or greater

isRtl
Boolean

true if measuring on RTL context, otherwise false.

outMetrics
Paint.FontMetricsInt

the output font metrics. This value cannot be null.

Attributes

Remarks

Android reference for android.graphics.Paint.getFontMetricsInt.

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

GetFontMetricsInt(String, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

public void GetFontMetricsInt(string text, int start, int count, int contextStart, int contextCount, bool isRtl, Android.Graphics.Paint.FontMetricsInt outMetrics);
member this.GetFontMetricsInt : string * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
String
start
Int32
count
Int32
contextStart
Int32
contextCount
Int32
isRtl
Boolean

Applies to