Optionalbold?: boolean | nullAlias for IStyledFont.Properties.weight. true sets bold (700), false normal
(400), null clears it. Ignored when weight is also supplied.
Optionalitalic?: boolean | nullAlias for IStyledFont.Properties.style. true sets IFont.Style.Italic, false
IFont.Style.Normal, null clears it. Ignored when style is also supplied.
Optionalunderline?: boolean | IFont.UnderlineStyle | nullThe underline style. true is shorthand for IFont.UnderlineStyle.Single; false and
null for IFont.UnderlineStyle.None.
Optionalweight?: number | stringThe weight of the characters, either numeric (400, 700) or a css keyword such as
'bold' or 'lighter'.
Every key here is normalized onto a IStyledFont.Properties key before it is stored, so none of the widened forms survive into IStyledFont.JSON. An explicit canonical key wins when both it and its alias are supplied.
The shape accepted by font updates - IStyledFont.Properties widened with shorthands and with convenience aliases for the properties that have a boolean spelling.