当前位置:网站首页>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;}边栏推荐
- 局域网电脑硬件信息收集工具
- execsnoop tool
- mmdetection trains a model related command
- 图解lower_bound&upper_bound
- Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
- Intranet Infiltration - Privilege Escalation
- Mathematics to solve the problem - circular linked list
- CorelDRAW2022精简亚太新增功能详细介绍
- Calculate S=a+aa+…+aa…a
- Software accumulation -- Screenshot software ScreenToGif
猜你喜欢

coldfusion8 background scheduled tasks take shell

系统需求多变如何设计

图解lower_bound&upper_bound

Maximum area of solar panel od js
![The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]](/img/8a/28427aa773e46740eda9e95f6669f2.png)
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]

Software testing basic interface testing - getting started with Jmeter, you should pay attention to these things
![LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING](/img/56/fcc8ee6f592abf0a374fc950a3362f.png)
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING

String为什么不可变?

直播预告 | KDD2022博士论文奖冠亚军对话

Unity界面总体介绍
随机推荐
SQL注入 Less47(报错注入) 和Less49(时间盲注)
JetPack组件Databinding
STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
Drools basic introduction, introductory case, basic syntax
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
How to do a startup CTO?
FPGA-based vending machine
First acquaintance with C language -- array
19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
11、Redis实现关注、取消关注以及关注和粉丝列表
Static route analysis (the longest mask matching principle + active and standby routes)
The final exam first year course
Uninstallation of mysql5.7.37 under CentOS7 [perfect solution]
StringJoiner详解
Unity界面总体介绍
Unity3D Button mouse hover enter and mouse hover exit button events
自动化办公案例:如何自动生成期数据?
AI software development process in medical imaging field
19.支持向量机-优化目标和大间距直观理解
Coldfusion file read holes (CVE - 2010-2861)