Share via


Paint.ElegantTextHeight Property

Definition

Get the elegant metrics flag. -or- Set the paint's elegant height metrics flag.

public virtual bool ElegantTextHeight { [Android.Runtime.Register("isElegantTextHeight", "()Z", "GetIsElegantTextHeightHandler")] get; [Android.Runtime.Register("setElegantTextHeight", "(Z)V", "GetSetElegantTextHeight_ZHandler")] set; }
[<get: Android.Runtime.Register("isElegantTextHeight", "()Z", "GetIsElegantTextHeightHandler")>]
[<set: Android.Runtime.Register("setElegantTextHeight", "(Z)V", "GetSetElegantTextHeight_ZHandler")>]
member this.ElegantTextHeight : bool with get, set

Property Value

true if elegant metrics are enabled for text drawing.

Attributes

Remarks

Property getter documentation:

Get the elegant metrics flag.

Note: For applications target API 35 or later, this function returns true by default. For applications target API 36 or later, the function call will be ignored and the elegant text height is always enabled.

This member is deprecated. The underlying UI fonts are deprecated and will be removed from the system image. Applications supporting scripts with large vertical metrics should adapt their UI by using fonts designed with corresponding vertical metrics.

Java documentation for android.graphics.Paint.isElegantTextHeight().

Property setter documentation:

Set the paint's elegant height metrics flag. This setting selects font variants that have not been compacted to fit Latin-based vertical metrics, and also increases top and bottom bounds to provide more space.

Note: For applications target API 35 or later, the default value will be true by default. For applications target API 36 or later, the function call will be ignored and the elegant text height is always enabled.

This member is deprecated. This API will be no-op at some point in the future. The underlying UI fonts is deprecated and will be removed from the system image. Applications supporting scripts with large vertical metrics should adapt their UI by using fonts designed with corresponding vertical metrics.

Java documentation for android.graphics.Paint.setElegantTextHeight(boolean).

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