Skip to content

Function: normalizeFontStyle() ​

ts
function normalizeFontStyle(style): TextFontStyle;

Experimental

Normalize a CSS font style (anything but italic/oblique → normal).

Parameters ​

ParameterType
stylestring | undefined

Returns ​

TextFontStyle

Released under the MIT License.