TextOrientation


enum TextOrientation : Enum


Represents the orientation of text within a vertical writing mode.

This controls how text characters are displayed when using a vertical writing mode. For more information, refer to: CSS text-orientation

Summary

Enum Values

Mixed

Characters from horizontal scripts are rotated 90 degrees clockwise, while characters from vertical scripts remain in their original orientation.

Sideways

All characters are rotated 90 degrees clockwise, regardless of script.

Upright

Specifies that all characters are laid out in an upright orientation, regardless of script.

Public companion functions

TextOrientation
fromInt(value: Int)

Public functions

TextOrientation
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<TextOrientation>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

EnumEntries<TextOrientation>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Enum Values

Mixed

val TextOrientation.MixedTextOrientation

Characters from horizontal scripts are rotated 90 degrees clockwise, while characters from vertical scripts remain in their original orientation.

This is useful for mixed-script content where you want horizontal text to fit vertically while vertical text remains upright.

Corresponds to CSS text-orientation: mixed;.

Sideways

val TextOrientation.SidewaysTextOrientation

All characters are rotated 90 degrees clockwise, regardless of script.

This is useful when you want all text to be sideways in a vertical layout.

Corresponds to CSS text-orientation: sideways;.

Upright

val TextOrientation.UprightTextOrientation

Specifies that all characters are laid out in an upright orientation, regardless of script.

This is useful when you want all characters to remain upright even for horizontal scripts.

Corresponds to CSS text-orientation: upright;.

Public companion functions

fromInt

Added in 1.0.0-alpha04
fun fromInt(value: Int): TextOrientation

Public functions

valueOf

Added in 1.0.0-alpha04
fun valueOf(value: String): TextOrientation

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.0.0-alpha04
fun values(): Array<TextOrientation>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

entries

val entriesEnumEntries<TextOrientation>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.