Limited availability
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.
Exampleslet 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 Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4