Home >Web Front-end >CSS Tutorial >Usage of CSS @font-face rule

Usage of CSS @font-face rule

王林
王林forward
2023-08-31 08:45:05756browse

CSS @font-face 规则的用法

@font-face rules are used to describe in detail the fonts used in the document. @font-face can also be used to define where fonts are downloaded, although this may encounter implementation-specific limitations.

Example

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

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

The above is the detailed content of Usage of CSS @font-face rule. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete
Previous article:CSS Alpha Channel FilterNext article:CSS Alpha Channel Filter