Paint.GetFontMetricsIntForLocale(Paint+FontMetricsInt) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the font metrics used for the locale Obtain the metrics of the font that is used for the specified locale by setTextLocales(LocaleList).
[Android.Runtime.Register("getFontMetricsIntForLocale", "(Landroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsIntForLocale_Landroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=35)]
public virtual void GetFontMetricsIntForLocale(Android.Graphics.Paint.FontMetricsInt metrics);
[<Android.Runtime.Register("getFontMetricsIntForLocale", "(Landroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsIntForLocale_Landroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=35)>]
abstract member GetFontMetricsIntForLocale : Android.Graphics.Paint.FontMetricsInt -> unit
override this.GetFontMetricsIntForLocale : Android.Graphics.Paint.FontMetricsInt -> unit
Parameters
- metrics
- Paint.FontMetricsInt
an output parameter. All members will be set by calling this function. This value cannot be null.
- Attributes
Remarks
Get the font metrics used for the locale Obtain the metrics of the font that is used for the specified locale by setTextLocales(LocaleList). If multiple locales are specified, the minimum ascent and maximum descent will be set. This API is useful for determining the default line height of the empty text field, e.g. EditText. Note, if the Typeface is created from the custom font files, its metrics are reserved, i.e. the ascent will be the custom font's ascent or smaller, the descent will be the custom font's descent or larger. Note, if the Typeface is a system fallback, e.g. Typeface.SERIF, the default font's metrics are reserved, i.e. the ascent will be the serif font's ascent or smaller, the descent will be the serif font's descent or larger.
Android reference for android.graphics.Paint.getFontMetricsIntForLocale.
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.