FontFace: descentOverride プロパティ

descentOverrideFontFace インターフェイスのプロパティで、 descent-override 記述子の値を返したり設定したりします。 使用できる値は、使用するメトリックをフォントファイルから取得することを示す normal か、パーセント値です。

文字列です。

js
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'

仕様書

Specification
CSS Font Loading Module Level 3
# dom-fontfacedescriptors-descentoverride

ブラウザーの互換性

BCD tables only load in the browser