line-gap-override
line-gap-override 是 CSS @font-face at-rule 的一個描述符,它定義了字型的行間距度量。行間距度量是字型推薦的行間距或外部行距。
語法
css
line-gap-override: normal;
line-gap-override: 90%;
值
normal-
預設值。使用此值時,度量值將從字型檔案中獲取。
<percentage>-
一個
<percentage>值。
正式定義
| 相關的 at-rule | @font-face |
|---|---|
| 初始值 | normal |
| 百分比 | 同指定值 |
| 計算值 | 同指定值 |
正式語法
line-gap-override =
[ normal | <percentage [0,∞]> ]{1,2}
示例
覆蓋備用字型的度量
line-gap-override 屬性在覆蓋回退字型的度量以更好地匹配主網頁字型的度量時會很有幫助。
css
@font-face {
font-family: "web-font";
src: url("https://example.com/font.woff");
}
@font-face {
font-family: "local-font";
src: local("Local Font");
line-gap-override: 125%;
}
規範
| 規範 |
|---|
| CSS 字型模組第 4 級 # font-metrics-override-desc |
瀏覽器相容性
載入中…