VerticalTextStyle

class VerticalTextStyle


A style object for vertical text, containing only members supported by VerticalText.

Summary

Public companion properties

VerticalTextStyle

Default VerticalTextStyle with all members unspecified.

Public constructors

VerticalTextStyle(
    color: Color,
    fontSize: TextUnit,
    fontWeight: FontWeight?,
    fontStyle: FontStyle?,
    fontSynthesis: FontSynthesis?,
    fontFamily: FontFamily?,
    fontFeatureSettings: String?,
    background: Color,
    localeList: LocaleList?
)

Public functions

VerticalTextStyle
copy(
    color: Color,
    fontSize: TextUnit,
    fontWeight: FontWeight?,
    fontStyle: FontStyle?,
    fontSynthesis: FontSynthesis?,
    fontFamily: FontFamily?,
    fontFeatureSettings: String?,
    background: Color,
    localeList: LocaleList?
)
open operator Boolean
equals(other: Any?)
open Int
VerticalTextStyle

Returns a new VerticalTextStyle that is a combination of this style and the given other style.

operator VerticalTextStyle

Plus operator overload for merge.

open String

Public properties

Color

The background color for the text.

Color

The text color.

FontFamily?

The font family to use when rendering the text.

String?

The advanced typography settings for the font.

TextUnit

The size of glyphs to use when painting the text.

FontStyle?

The typeface variant to use when drawing the letters (e.g., italic).

FontSynthesis?

Whether to synthesize font weight and/or style when they are not available in the font family.

FontWeight?

The thickness of the glyph strokes.

LocaleList?

The locales of the text.

Public companion properties

Default

Added in 1.0.0-alpha06
val DefaultVerticalTextStyle

Default VerticalTextStyle with all members unspecified.

Public constructors

VerticalTextStyle

Added in 1.0.0-alpha06
VerticalTextStyle(
    color: Color = Color.Unspecified,
    fontSize: TextUnit = TextUnit.Unspecified,
    fontWeight: FontWeight? = null,
    fontStyle: FontStyle? = null,
    fontSynthesis: FontSynthesis? = null,
    fontFamily: FontFamily? = null,
    fontFeatureSettings: String? = null,
    background: Color = Color.Unspecified,
    localeList: LocaleList? = null
)
Parameters
color: Color = Color.Unspecified

The text color.

fontSize: TextUnit = TextUnit.Unspecified

The size of glyphs to use when painting the text.

fontWeight: FontWeight? = null

The thickness of the glyph strokes.

fontStyle: FontStyle? = null

The typeface variant to use when drawing the letters (e.g., italic).

fontSynthesis: FontSynthesis? = null

Whether to synthesize font weight and/or style when they are not available in the font family.

fontFamily: FontFamily? = null

The font family to use when rendering the text.

fontFeatureSettings: String? = null

The advanced typography settings for the font.

background: Color = Color.Unspecified

The background color for the text.

localeList: LocaleList? = null

The locales of the text.

Public functions

copy

Added in 1.0.0-alpha06
fun copy(
    color: Color = this.color,
    fontSize: TextUnit = this.fontSize,
    fontWeight: FontWeight? = this.fontWeight,
    fontStyle: FontStyle? = this.fontStyle,
    fontSynthesis: FontSynthesis? = this.fontSynthesis,
    fontFamily: FontFamily? = this.fontFamily,
    fontFeatureSettings: String? = this.fontFeatureSettings,
    background: Color = this.background,
    localeList: LocaleList? = this.localeList
): VerticalTextStyle

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

merge

Added in 1.0.0-alpha06
fun merge(other: VerticalTextStyle?): VerticalTextStyle

Returns a new VerticalTextStyle that is a combination of this style and the given other style.

If a property is specified in other, it will be used in the result. Otherwise, the property from this style will be used.

plus

Added in 1.0.0-alpha06
operator fun plus(other: VerticalTextStyle): VerticalTextStyle

Plus operator overload for merge.

toString

open fun toString(): String

Public properties

background

val backgroundColor

The background color for the text.

color

val colorColor

The text color.

fontFamily

Added in 1.0.0-alpha06
val fontFamilyFontFamily?

The font family to use when rendering the text.

fontFeatureSettings

Added in 1.0.0-alpha06
val fontFeatureSettingsString?

The advanced typography settings for the font.

fontSize

val fontSizeTextUnit

The size of glyphs to use when painting the text.

fontStyle

val fontStyleFontStyle?

The typeface variant to use when drawing the letters (e.g., italic).

fontSynthesis

val fontSynthesisFontSynthesis?

Whether to synthesize font weight and/or style when they are not available in the font family.

fontWeight

Added in 1.0.0-alpha06
val fontWeightFontWeight?

The thickness of the glyph strokes.

localeList

Added in 1.0.0-alpha06
val localeListLocaleList?

The locales of the text.