TextOrientation


public static class 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

static final int
MIXED = 0

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

static final int

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

static final int

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

Public fields

static @NonNull TextOrientation

Constants

MIXED

Added in 1.0.0-alpha01
public static final int MIXED = 0

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
public static final int SIDEWAYS = 2

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
public static final int UPRIGHT = 1

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;.

Public fields

INSTANCE

Added in 1.0.0-alpha01
public static @NonNull TextOrientation INSTANCE