FontFace.variationSettings

The variationSettings property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations. It is equivalent to the font-variation-settings descriptor.

Syntax

let variationSettingDescriptor = FontFace.variationSettings;
FontFace.variationSettings = variationSettingDescriptor;

Value

A CSSOMString containing a descriptor.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
variationSettings
62
79
62
No
49
No
62
62
62
46
No
8.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variationSettings