Weight

enum Weight : Enum<Weight>

An enumeration specifying the weight (boldness) of a font.

Weight is specified as a numeric value ranging from 100 to 1000. This enumeration simply provides some common, predefined values.

Entries

Link copied to clipboard

the thin weight (= 100) Since: 1.24

Link copied to clipboard

the ultralight weight (= 200)

Link copied to clipboard

the light weight (= 300)

Link copied to clipboard

the semilight weight (= 350) Since: 1.36.7

Link copied to clipboard

the book weight (= 380) Since: 1.24)

Link copied to clipboard

the default weight (= 400)

Link copied to clipboard

the normal weight (= 500) Since: 1.24

Link copied to clipboard

the semibold weight (= 600)

Link copied to clipboard

the bold weight (= 700)

Link copied to clipboard

the ultrabold weight (= 800)

Link copied to clipboard

the heavy weight (= 900)

Link copied to clipboard

the ultraheavy weight (= 1000) Since: 1.24

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Weight

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.