当前位置:网站首页>The use of font compression artifact font-spider
The use of font compression artifact font-spider
2022-07-31 02:40:00 【Hao Xing】
Foreword:
Many times the project will encounter the need to introduce external fonts, whether it is vue, applet, react, etc., but the pc-side project is fine, it is possible to put the source files locally, but the applet will not work, because the bodyThe amount is relatively small, and there is a limit to the size.
font-spider word spider official website address: it is best to have over the wall software, otherwise it is too slow, and there is a high probability of failure
font-spider.org -
http://ww1.font-spider.org/
Specific use:
1. Install the plugin globally
npm install font-spider -g2. Check if the installation is successful
font-spider -V3. Open your directory and find the folder where your source files are located, such as mine
4. Create a new index.html,
Note that names such as LouisVuittonGlobal-Regular are replaced with your own source files
font spider abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
5. Right-click to open the cmd pop-up box, or the powershell pop-up box, and execute the command
font-spider index.html6. You can see the following interface, the source file is 2M, and it is about 60k after compression. There are other formats that can be used


7. Beautiful, use it, import css:
@font-face {font-family: 'LouisVuittonGlobal-Regular';src: url("../fonts/LouisVuittonGlobal-Regular.ttf") format('truetype'); //mainly this sentencefont-weight: normal;font-style: normal;}边栏推荐
- The whole process scheduling, MySQL and Sqoop
- Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
- [1153] The boundary range of between in mysql
- 局域网电脑硬件信息收集工具
- AtCoder Beginner Contest 261 部分题解
- How to build a private yum source
- 静态路由解析(最长掩码匹配原则+主备路由)
- Observer mode (1)
- Unity界面总体介绍
- 二层广播风暴(产生原因+判断+解决)
猜你喜欢

6、显示评论和回复

Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment

Discourse 自定义头部链接(Custom Header Links)

Word/Excel fixed table size, when filling in the content, the table does not change with the cell content

Pythagorean tuple od js

String为什么不可变?

MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输

Drools Rule Properties, Advanced Syntax

静态路由解析(最长掩码匹配原则+主备路由)

19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
随机推荐
Introduction to flask series 】 【 flask - using SQLAlchemy
7. List of private messages
STP选举(步骤+案列)详解
User interaction + formatted output
1. Non-type template parameters 2. Specialization of templates 3. Explanation of inheritance
编译Hudi
完整复制虚拟机原理(云计算)
php 网站的多语言设置(IP地址区分国内国外)
BAT卖不动「医疗云」:医院逃离、山头林立、行有行规
【CV项目调试】CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT问题
The simulation application of common mode inductance is here, full of dry goods for everyone
软件积累 -- 截图软件ScreenToGif
6、显示评论和回复
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]
golang GUI for nuxui — HelloWorld
经典链表OJ强训题——快慢双指针高效解法
BAT can't sell "Medical Cloud": Hospitals flee, mountains stand, and there are rules
How to design the changing system requirements
CentOS7下mysql5.7.37的安装【完美方案】
工程(五)——小目标检测tph-yolov5