EmphasisStyle


public sealed class EmphasisStyle


Defines the visual style of emphasis marks used with EmphasisSpan.

Each style corresponds to a specific Unicode character pair (filled and open variants).

Summary

Public fields

final int

The integer representation of this style, used for serialization.

static final @NonNull EmphasisStyle

Emphasis mark is a large circle.

static final @NonNull EmphasisStyle

Emphasis mark is a small circle.

static final @NonNull EmphasisStyle

Emphasis mark is a double circle.

static final @NonNull EmphasisStyle

Emphasis mark is a sesame.

static final @NonNull EmphasisStyle

Emphasis mark is a triangle.

Protected constructors

EmphasisStyle(int value)

Public fields

value

Added in 1.0.0-alpha05
public final int value

The integer representation of this style, used for serialization.

Circle

public static final @NonNull EmphasisStyle Circle

Emphasis mark is a large circle. The filled dot is U+25CF, open dot is U+25CB.

Dot

public static final @NonNull EmphasisStyle Dot

Emphasis mark is a small circle. The filled dot is U+2022, open dot is U+25E6.

DoubleCircle

public static final @NonNull EmphasisStyle DoubleCircle

Emphasis mark is a double circle. The filled dot is U+25C9, open dot is U+25CE.

Sesame

public static final @NonNull EmphasisStyle Sesame

Emphasis mark is a sesame. The filled dot is U+FE45, open dot is U+FE46.

Triangle

public static final @NonNull EmphasisStyle Triangle

Emphasis mark is a triangle. The filled dot is U+25B2, open dot is U+25B3.

Protected constructors

EmphasisStyle

protected EmphasisStyle(int value)