Note: This feature is available in Web Workers.
The descentOverride property of the FontFace interface returns and sets the value of the descent-override descriptor. The possible values are normal, indicating that the metric used should be obtained from the font file, or a percentage.
A string.
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'