# FontWeight

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/font/FontWeight.kt+class:androidx.compose.ui.text.font.FontWeight) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  class FontWeight : Comparable<FontWeight>
  ```

*** ** * ** ***

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

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/Font` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily` |   |

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Black()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W900()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Bold()` A commonly used font weight that is heavier than normal - alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W700()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#ExtraBold()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W800()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#ExtraLight()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W200()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Light()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W300()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Medium()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W500()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Normal()` The default font weight - alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W400()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#SemiBold()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W600()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Thin()` Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W100()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W100()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Thin()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W200()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#ExtraLight()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W300()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Light()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W400()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Normal()` / regular / plain | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W500()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Medium()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W600()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#SemiBold()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W700()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Bold()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W800()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#ExtraBold()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W900()` `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Black()` | Cmn |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#FontWeight(kotlin.Int)(weight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#compareTo(androidx.compose.ui.text.font.FontWeight)(other: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight)` | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#weight()` Font weight value in the range of 1, 1000 | Cmn |

## Public companion properties

### Black

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Black: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W900()`

### Bold

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Bold: FontWeight
```

A commonly used font weight that is heavier than normal - alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W700()`

### ExtraBold

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val ExtraBold: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W800()`

### ExtraLight

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val ExtraLight: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W200()`

### Light

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Light: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W300()`

### Medium

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Medium: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W500()`

### Normal

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Normal: FontWeight
```

The default font weight - alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W400()`

### SemiBold

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val SemiBold: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W600()`

### Thin

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Thin: FontWeight
```

Alias for `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#W100()`

### W100

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W100: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Thin()`

### W200

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W200: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#ExtraLight()`

### W300

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W300: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Light()`

### W400

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W400: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Normal()` / regular / plain

### W500

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W500: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Medium()`

### W600

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W600: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#SemiBold()`

### W700

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W700: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Bold()`

### W800

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W800: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#ExtraBold()`

### W900

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val W900: FontWeight
```

`https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight#Black()`

## Public constructors

### FontWeight

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
FontWeight(weight: Int)
```

| Parameters |
|---|---|
| `weight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Font weight value in the range of 1, 1000 |

## Public functions

### compareTo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
open operator fun compareTo(other: FontWeight): Int
```

### equals

Cmn

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

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### weight

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val weight: Int
```

Font weight value in the range of 1, 1000