{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FontWeight

public final class FontWeight implements Comparable


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

See also
Font
FontFamily

Summary

Nested types

public static class FontWeight.Companion

Public constructors

FontWeight(int weight)

Public methods

int
boolean
equals(Object other)
final int

Font weight value in the range of 1, 1000

int
@NonNull String

Public constructors

FontWeight

public FontWeight(int weight)
Parameters
int weight

Font weight value in the range of 1, 1000

Public methods

compareTo

public int compareTo(@NonNull FontWeight other)

equals

public boolean equals(Object other)

getWeight

public final int getWeight()

Font weight value in the range of 1, 1000

hashCode

public int hashCode()

toString

public @NonNull String toString()