TextAnnotation
@UnstableApi
class TextAnnotation
Properties of a text annotation (i.e. ruby, text emphasis marks).
Summary
Nested types |
|---|
@DocumentedThe possible positions of the annotation text relative to the base text. |
Constants |
|
|---|---|
const Int |
POSITION_AFTER = 2For horizontal text, the text annotation should be positioned below the base text. |
const Int |
POSITION_BEFORE = 1For horizontal text, the text annotation should be positioned above the base text. |
const Int |
POSITION_UNKNOWN = -1The text annotation position is unknown. |
Constants
POSITION_AFTER
const val POSITION_AFTER = 2: Int
For horizontal text, the text annotation should be positioned below the base text.
For vertical text it should be positioned to the left, same as CSS's ruby-position.
POSITION_BEFORE
const val POSITION_BEFORE = 1: Int
For horizontal text, the text annotation should be positioned above the base text.
For vertical text it should be positioned to the right, same as CSS's ruby-position.