type

FontWeight

@Js
@Serializable { simple=true }
enum class FontWeight : Enum

Font weight property values

enum

constructors

fromStr

Return the FontWeight instance for the specified name.

fields

num

Numeric weight as number from 100 to 900

vals

List of FontWeight values indexed by ordinal

methods

fromNum

From numeric value 100 to 900

isNormal

Is this the normal value

Slot Details

black

const static FontWeight black := ...

bold

const static FontWeight bold := ...

extraBold

const static FontWeight extraBold := ...

extraLight

const static FontWeight extraLight := ...

fromNum

static FontWeight? fromNum(Int num, Bool checked := true)

From numeric value 100 to 900

fromStr

static new fromStr(Str name, Bool checked := true)

Return the FontWeight instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

isNormal

Bool isNormal()

Is this the normal value

light

const static FontWeight light := ...

medium

const static FontWeight medium := ...

normal

const static FontWeight normal := ...

num

const Int num

Numeric weight as number from 100 to 900

semiBold

const static FontWeight semiBold := ...

thin

const static FontWeight thin := ...

vals

const static FontWeight[] vals := ...

List of FontWeight values indexed by ordinal