FontStyleWeight
public enum FontStyleWeight : Int32
Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.
A font weight describes the relative weight of a font, in terms of the lightness or heaviness of the strokes.
Weight differences are generally differentiated by an increased stroke or thickness that is associated with a
given character in a font, as compared to a normal
character from that same font.
The FontWeights values correspond to the usWeightClass
definition in the OpenType specification.
The usWeightClass
represents an integer value between 1 and 999.
Lower values indicate lighter weights; higher values indicate heavier weights.
The numerical value of the enumeration is the usWeightClass
-
Invisible weight
Declaration
Swift
case invisible = 0
-
Specifies a
Thin
font weight.Declaration
Swift
case thin = 100
-
Specifies a
Extra Light
font weight.Declaration
Swift
case extraLight = 200
-
Specifies a
Light
font weight.Declaration
Swift
case light = 300
-
Specifies a
Normal
font weight.Declaration
Swift
case normal = 400
-
Specifies a
Medirum
font weight.Declaration
Swift
case medium = 500
-
Specifies a
Semi bold
font weight.Declaration
Swift
case semiBold = 600
-
Specifies a
Bold
font weight.Declaration
Swift
case bold = 700
-
Specifies a
Extra Bold
font weight.Declaration
Swift
case extraBold = 800
-
Specifies a
Black
font weight.Declaration
Swift
case black = 900
-
Specifies a
Extra Black
font weight.Declaration
Swift
case extraBlack = 1000