FontFace: thuộc tính lineGapOverride
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Note: This feature is available in Web Workers.
Thuộc tính lineGapOverride của giao diện FontFace trả về và đặt giá trị của descriptor line-gap-override. Các giá trị có thể là normal (lấy chỉ số từ file font) hoặc một phần trăm.
Giá trị
Một chuỗi.
Ví dụ
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'
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| CSS Font Loading Module Level 3> # dom-fontfacedescriptors-linegapoverride> |