class

FontWeight

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

Font weight property values

constructors fromStr

Return the FontWeight instance for the specified name

fields normal

extraLight

light

vals

List of FontWeight values indexed by ordinal

num

Numeric weight as number from 100 to 900

semiBold

black

bold

extraBold

medium

thin

methods isNormal

Is this the normal value

fromNum

From numeric value 100 to 900

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)

From numeric value 100 to 900

fromStr static new fromStr(Str name, Bool checked)

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

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST