Computer >> Computer tutorials >  >> Programming >> CSS

Describe a font face for use in a document in CSS


To describe a font face, use the @font-face rule. You can try to run the following code to set the font face −

Example

<style>
   <!--
      @font-face {
         font-family: "Scarborough Light";
         src: url("https://www.font.site/s/scarbo-lt");
      }

      @font-face {
         font-family: Santiago;
         src: local ("Santiago"),
         url("https://www.font.site/s/santiago.tt")
         format("truetype");
         unicode-range: U+??,U+100-220;
         font-size: all;
         font-family: sans-serif;
      }
   -->
</style>