type

FontWeight

src @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

src const static FontWeight black := ...

bold

src const static FontWeight bold := ...

extraBold

src const static FontWeight extraBold := ...

extraLight

src const static FontWeight extraLight := ...

fromNum

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

From numeric value 100 to 900

fromStr

src 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

src Bool isNormal()

Is this the normal value

light

src const static FontWeight light := ...

medium

src const static FontWeight medium := ...

normal

src const static FontWeight normal := ...

num

src const Int num

Numeric weight as number from 100 to 900

semiBold

src const static FontWeight semiBold := ...

thin

src const static FontWeight thin := ...

vals

src const static FontWeight[] vals := ...

List of FontWeight values indexed by ordinal