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 methods

Int

String

Companion properties

FontWeight

A commonly used font weight that is heavier than normal.

FontWeight

The default font weight.

FontWeight

Thin, the minimum thickness

FontWeight

Extra-light

FontWeight

Light

FontWeight

Normal / regular / plain

FontWeight

Medium

FontWeight

Semi-bold

FontWeight

Bold

FontWeight

Extra-bold

FontWeight

Black, maximum thickness

Public methods

compareTo

fun compareTo(other: FontWeight): Int

toString

fun toString(): String

Companion properties

Bold

val Bold: FontWeight

A commonly used font weight that is heavier than normal.

Normal

val Normal: FontWeight

The default font weight.

W100

val W100: FontWeight

Thin, the minimum thickness

W200

val W200: FontWeight

Extra-light

W300

val W300: FontWeight

Light

W400

val W400: FontWeight

Normal / regular / plain

W500

val W500: FontWeight

Medium

W600

val W600: FontWeight

Semi-bold

W700

val W700: FontWeight

Bold

W800

val W800: FontWeight

Extra-bold

W900

val W900: FontWeight

Black, maximum thickness