Note: This feature is available in Web Workers.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
The variant property of the FontFace interface programmatically retrieves or sets font variant values.
A string containing a descriptor as it would be defined in a style sheet's @font-face rule.