Google is committed to advancing racial equity for Black communities. See how.

FontWeight

@Immutable data class FontWeight : Comparable<FontWeight>
kotlin.Any
   ↳ androidx.ui.text.font.FontWeight

The thickness of the glyphs, in a range of 1,1000.

Summary

Public constructors
<init>(weight: Int)

The thickness of the glyphs, in a range of 1,1000.

Public methods
Int

Properties
Int

Font weight value in the range of 1,1000

Companion properties
FontWeight

Alias for W900

FontWeight

A commonly used font weight that is heavier than normal - alias for W700

FontWeight

Alias for W800

FontWeight

Alias for W200

FontWeight

Alias for W300

FontWeight

Alias for W500

FontWeight

The default font weight - alias for W400

FontWeight

Alias for W600

FontWeight

Alias for W100

FontWeight

Thin

FontWeight

ExtraLight

FontWeight

Light

FontWeight

Normal / regular / plain

FontWeight

Medium

FontWeight

SemiBold

FontWeight

Bold

FontWeight

ExtraBold

FontWeight

Black

Public constructors

<init>

FontWeight(weight: Int)

The thickness of the glyphs, in a range of 1,1000.

Parameters
weight: Int Font weight value in the range of 1,1000

See Also

Public methods

compareTo

fun compareTo(other: FontWeight): Int

Properties

weight

val weight: Int

Font weight value in the range of 1,1000

Companion properties

Black

@Stable val Black: FontWeight

Alias for W900

Bold

@Stable val Bold: FontWeight

A commonly used font weight that is heavier than normal - alias for W700

ExtraBold

@Stable val ExtraBold: FontWeight

Alias for W800

ExtraLight

@Stable val ExtraLight: FontWeight

Alias for W200

Light

@Stable val Light: FontWeight

Alias for W300

Medium

@Stable val Medium: FontWeight

Alias for W500

Normal

@Stable val Normal: FontWeight

The default font weight - alias for W400

SemiBold

@Stable val SemiBold: FontWeight

Alias for W600

Thin

@Stable val Thin: FontWeight

Alias for W100

W100

@Stable val W100: FontWeight

Thin

W200

@Stable val W200: FontWeight

ExtraLight

W300

@Stable val W300: FontWeight

Light

W400

@Stable val W400: FontWeight

Normal / regular / plain

W500

@Stable val W500: FontWeight

Medium

W600

@Stable val W600: FontWeight

SemiBold

W700

@Stable val W700: FontWeight

Bold

W800

@Stable val W800: FontWeight

ExtraBold

W900

@Stable val W900: FontWeight

Black