Use the spider to remove the required characters and apply the font

Source: Internet
Author: User

First, install the Font-spider

NPM Install Font-spider-g

II. directory Structure

Font-spider

Font

Fzzzhonghjw.ttf

Font.html

Iii. contents of font.html

<! DOCTYPE html>
<title> Founder Center Black Simplified </title>
<meta charset= "Utf-8" >
<style type= "Text/css" >
@font-face {
font-family: ' FZZZHONGHJW ';
Src:
URL (' Font/fzzzhonghjw.eot #font-spider ') format (' Embedded-opentype '),
URL (' font/fzzzhonghjw.woff ') format (' Woff '),
URL (' Font/fzzzhonghjw.ttf ') format (' TrueType '),
URL (' font/fzzzhonghjw.svg ') format (' SVG ');
}
p{
font-family: "FZZZHONGHJW";
}
</style>
<body>

<!--Global--
<p> class situation arrangement work teaching resources </p>

</body>

Four, from the font file to crawl the page font, generate font files, execute the command:

Font-spider font.html

V. Post-BUILD directory structure

Font-spider

Font

. font-spider

Fzzzhonghjw.ttf

Fzzzhonghjw.eot

Fzzzhonghjw.svg

Fzzzhonghjw.ttf

Fzzzhonghjw.woff

Font.html

Use the spider to remove the required characters and apply the font

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.