FontFace: descentOverride プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
descentOverride
は FontFace
インターフェイスのプロパティで、 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 |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
descentOverride |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.