FontFace: lineGapOverride プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
lineGapOverride は FontFace インターフェイスのプロパティで、 line-gap-override 記述子の値を返したり設定したりします。
使用可能な値は normal で、使用するメトリックをフォントファイルから取得することを示します。
値
文字列です。
例
js
let fontFace = new FontFace(
"Roboto",
"url(https://fonts.example.com/roboto.woff2)",
{ lineGapOverride: "90%" },
);
console.log(fontFace.lineGapOverride); // 90%
fontFace.lineGapOverride = "normal";
console.log(fontFace.lineGapOverride); // 'normal'
仕様書
| Specification |
|---|
| CSS Font Loading Module Level 3> # dom-fontfacedescriptors-linegapoverride> |
ブラウザーの互換性
Loading…