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'FontFace: lineGapOverride property / notebook
FontFace: lineGapOverride property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.