Giter Club home page Giter Club logo

minify-font's Introduction

网页字体文件精简版

在网页中特殊情况下会使用非标准字体(最近的项目中需要使用思源黑体),通过网页下载中文字体库往往很大(思源黑体 8M),其中大部分是用不到的字体,导致页面加载缓慢。通过删除不常用的文字,来减少字体库大小,加快网页加载速度。

使用资源

字体压缩工具

https://ecomfe.github.io/fontmin/

3500 常用字数据

https://github.com/DavidSheh/CommonChineseCharacter

字体

思源黑体

使用用法

npm i
npm run build

新的精简版字体文件输出到 dest 目录中.

minify-font's People

Contributors

deronw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.