TextOrientation


object TextOrientation


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

Constants

const Int
MIXED = 0

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

const Int

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

const Int

All characters are laid out in upright orientation, regardless of script.

Constants

MIXED

Added in 1.0.0-alpha01
const val MIXED = 0: Int

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

Added in 1.0.0-alpha01
const val SIDEWAYS = 2: Int

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

Added in 1.0.0-alpha01
const val UPRIGHT = 1: Int

All characters are laid out in 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;.