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 black

bold

extraBold

extraLight

light

medium

normal

num

Numeric weight as number from 100 to 900

semiBold

thin

vals

List of FontWeight values indexed by ordinal

methods fromNum

From numeric value 100 to 900

isNormal

Is this the normal value

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

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT