TextEmphasisSpan


@UnstableApi
class TextEmphasisSpan : LanguageFeatureSpan


A styling span for text emphasis marks.

These are pronunciation aids such as Japanese boutens which can be rendered using the text-emphasis CSS property.

Summary

Nested types

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation TextEmphasisSpan.MarkFill

The possible mark fills that can be used.

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation TextEmphasisSpan.MarkShape

The possible mark shapes that can be used.

Constants

const Int
const Int
const Int
const Int
const Int
const Int
const Int

Public constructors

Public functions

java-static TextEmphasisSpan!
fromBundle(bundle: Bundle!)
Bundle!

Public properties

Int

The mark fill for the text emphasis mark.

Int

The mark shape used for text emphasis.

Int

The position of the text emphasis relative to the base text.

Constants

MARK_FILL_FILLED

const val MARK_FILL_FILLED = 1: Int

MARK_FILL_OPEN

const val MARK_FILL_OPEN = 2: Int

MARK_FILL_UNKNOWN

const val MARK_FILL_UNKNOWN = 0: Int

MARK_SHAPE_CIRCLE

const val MARK_SHAPE_CIRCLE = 1: Int

MARK_SHAPE_DOT

const val MARK_SHAPE_DOT = 2: Int

MARK_SHAPE_NONE

const val MARK_SHAPE_NONE = 0: Int

MARK_SHAPE_SESAME

const val MARK_SHAPE_SESAME = 3: Int

Public constructors

TextEmphasisSpan

TextEmphasisSpan(
    @TextEmphasisSpan.MarkShape shape: Int,
    @TextEmphasisSpan.MarkFill fill: Int,
    @TextAnnotation.Position position: Int
)

Public functions

fromBundle

java-static fun fromBundle(bundle: Bundle!): TextEmphasisSpan!

toBundle

fun toBundle(): Bundle!

Public properties

markFill

@TextEmphasisSpan.MarkShape
val markFillInt

The mark fill for the text emphasis mark.

markShape

@TextEmphasisSpan.MarkShape
val markShapeInt

The mark shape used for text emphasis.

position

@TextAnnotation.Position
val positionInt

The position of the text emphasis relative to the base text.