let fontFace = new FontFace(
"Roboto",
'url("https://fonts.example.com/roboto.woff2")',
);
console.log(fontFace.family); // 'Roboto'
fontFace.family = "newRoboto";
console.log(fontFace.family); // 'newRoboto'FontFace: family property / notebook
FontFace: family property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.