Share via


Paint.VerticalTextFlag Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.PaintFlags enum directly instead of this field.

A flat that controls text to be written in vertical orientation

[Android.Runtime.Register("VERTICAL_TEXT_FLAG", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.PaintFlags enum directly instead of this field.", true)]
public const Android.Graphics.PaintFlags VerticalTextFlag = 4096;
[<Android.Runtime.Register("VERTICAL_TEXT_FLAG", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.PaintFlags enum directly instead of this field.", true)>]
val mutable VerticalTextFlag : Android.Graphics.PaintFlags

Field Value

Value = 4096
Attributes

Remarks

A flat that controls text to be written in vertical orientation

This flag is used for telling the underlying text layout engine that the text is for vertical direction. By enabling this flag, text measurement, drawing and shaping APIs works for vertical text layout. For example, Canvas#drawText(String, float, float, Paint) draws text from top to bottom. Paint#measureText(String) returns vertical advances instead of horizontal advances. TextRunShaper shapes text vertically and report glyph IDs for vertical layout.

Do not set this flag for making android.text.Layout. The android.text.Layout class and its subclasses are designed for horizontal text only and does not work for vertical text.

Java documentation for android.graphics.Paint.VERTICAL_TEXT_FLAG.

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