QP School

Full Version: Custom font loading in CSS3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Description:

You can use @font-face to load custom fonts in your web pages. This way, you can have more control over typography and design.

Example:

@font-face {
  font-family: "CustomFont";
  src: url("path/to/custom-font.woff2") format("woff2"),
      url("path/to/custom-font.woff") format("woff");
}

body {
  font-family: "CustomFont", sans-serif;
}