MDN self-hosted library · e01.org
Web fonts / notebook

Web fonts

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
p {
  font-family: "Helvetica", "Trebuchet MS", "Verdana", sans-serif;
}
css
@font-face {
  font-family: "myFont";
  src: url("myFont.woff2");
}
css
html {
  font-family: "myFont", "Bitstream Vera Serif", serif;
}
css
   @font-face {
     font-family: "zantrokeregular";
     src: url("fonts/zantroke-webfont.woff2") format("woff2");
     font-weight: normal;
     font-style: normal;
     font-display: swap;
   }
css
   font-family: "zantrokeregular", serif;
css
@font-face {
  font-family: "zantrokeregular";
  src: url("zantroke-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}