web api instance property
FontFace: descentOverride property
Available in workers
The descentOverride property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.
The possible values are normal, indicating that the metric used should be obtained from the font file, or a percentage.
Value
A string.
Examples
let fontFace = new FontFace(
"Roboto",
'url("https://fonts.example.com/roboto.woff2")',
{ descentOverride: "90%" },
);
console.log(fontFace.descentOverride); // 90%
fontFace.descentOverride = "normal";
console.log(fontFace.descentOverride); // 'normal'
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.