All Projects → aui → Font Spider

aui / Font Spider

Licence: mit
Smart webfont compression and format conversion tool

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Font Spider

fontagon
Fontagon is a great tool that easily converts svg into icon font. Fontagon-cli allows faster conversion to commands.
Stars: ✭ 18 (-99.6%)
Mutual labels:  woff2, woff, ttf, webfont
fontfacegen-webpack-plugin
A plugin for webpack that allows you to convert .ttf and .otf files into various other font formats such as .eot, .ttf, .svg, .woff and .woff2 using the existing NPM package fontfacegen.
Stars: ✭ 20 (-99.56%)
Mutual labels:  woff2, woff, ttf, eot
Woffle
Drag and drop woff and woff2 web font generator for macOS
Stars: ✭ 24 (-99.47%)
Mutual labels:  woff2, woff, webfont
beatrix
A tool to chop off useless fonts glyphs and convert TTF/OTF into WOFF & WOFF2
Stars: ✭ 22 (-99.52%)
Mutual labels:  woff2, woff, ttf
Php Font Lib
A library to read, parse, export and make subsets of different types of font files.
Stars: ✭ 1,530 (-66.37%)
Mutual labels:  ttf, woff, truetype
pixel font
All-in-one tool for creating TrueType outline fonts from bitmap glyph data, purely written in Elixir.
Stars: ✭ 16 (-99.65%)
Mutual labels:  opentype, ttf, truetype
Coreui Icons
CoreUI Free Icons - Premium designed free icon set with marks in SVG, Webfont and raster formats
Stars: ✭ 1,813 (-60.15%)
Mutual labels:  svg, webfont
Webfonts Loader
Make an icon font from SVGs!
Stars: ✭ 153 (-96.64%)
Mutual labels:  svg, ttf
fonterator
Load fonts as vector graphics in pure Rust with advanced text layout.
Stars: ✭ 34 (-99.25%)
Mutual labels:  opentype, truetype
Ttf Parser
A high-level, safe, zero-allocation TrueType font parser.
Stars: ✭ 221 (-95.14%)
Mutual labels:  opentype, ttf
ttf-explorer
A simple tool to explore a TrueType font content as a tree
Stars: ✭ 22 (-99.52%)
Mutual labels:  opentype, truetype
font-v
Font version string reporting and modification library + executable tool
Stars: ✭ 15 (-99.67%)
Mutual labels:  opentype, ttf
Icons
The premium icon font for @uiwjs Component Library. https://uiwjs.github.io/icons
Stars: ✭ 99 (-97.82%)
Mutual labels:  svg, webfont
Linearicons
Linearicons is the highest quality set of line icons, matching with minimalist UI designs in iOS.
Stars: ✭ 64 (-98.59%)
Mutual labels:  svg, webfont
Fonteditor Core
fonteditor core functions
Stars: ✭ 207 (-95.45%)
Mutual labels:  svg, ttf
Typography
C# Font Reader (TrueType / OpenType / OpenFont / CFF / woff / woff2) , Glyphs Layout and Rendering
Stars: ✭ 246 (-94.59%)
Mutual labels:  opentype, ttf
bitsnpicas
Bits'N'Picas - Bitmap & Emoji Font Creation & Conversion Tools
Stars: ✭ 171 (-96.24%)
Mutual labels:  opentype, truetype
typedesigner
Unified Font Object Editor for macOS
Stars: ✭ 20 (-99.56%)
Mutual labels:  opentype, truetype
Webfont
Awesome generator of webfont
Stars: ✭ 170 (-96.26%)
Mutual labels:  ttf, webfont
Awesome Typography
✏︎ Curated list about digital typography 🔥
Stars: ✭ 947 (-79.19%)
Mutual labels:  opentype, ttf

font-spider

NPM Version NPM Downloads Node.js Version Build Status

[简体中文] | [English] | [日本語]

Font-spider is a compress tool for WebFont which can analyze your web-page intelligently to find the fonts out which have been used and then compress them.

字蛛是一个智能 WebFont 压缩工具,它能自动分析出页面使用的 WebFont 并进行按需压缩。

フォント・スパイダー(font-spider)は、Webフォントを圧縮するためのスマートなツールです,Webページに使用されるWebフォントを分析し、必要に応じて圧縮することができます。


font-spider

Feature

  1. Font subsetter: Our tool is based on HTML and CSS analysis and completely running in local so that.
  2. Font converter: Support woff2, woff, eot, svg font format generation.

Install

npm install font-spider -g

Use

step one: code CSS

@font-face {
  font-family: 'source';
  src: url('../font/source.eot');
  src:
    url('../font/source.eot?#font-spider') format('embedded-opentype'),
    url('../font/source.woff2') format('woff2'),
    url('../font/source.woff') format('woff'),
    url('../font/source.ttf') format('truetype'),
    url('../font/source.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

.home h1, .demo > .test {
    font-family: 'source';
}

Attention: the ".ttf" file must be existed which is referred in src property of @font-face, and our font-spider will automatically generate other formats of font.

step two: compress WebFont by using font-spider

font-spider [options] <htmlFile1 htmlFile2 ...>

htmlFiles

One or more web-page addresses which support the http form.

Example:

font-spider dest/news.html dest/index.html dest/about.html

options

Usage: font-spider [options] <htmlFile ...>

Options:

  -h, --help                    output usage information
  -V, --version                 output the version number
  --info                        show only webfont information
  --ignore <pattern>            ignore the files
  --map <remotePath,localPath>  mapping the remote path to the local
  --no-backup                   do not back up fonts
  --debug                       enable debug mode

sample of parameters usage

Use the wildcard character to compress the WebFont of several HTML file:

font-spider dest/*.html

--info Show the WebFont that has been used on the website:

font-spider --info http://fontawesome.io

--ignore Ignore the file:

font-spider --ignore "icon\\.css$" dest/*.html

--map This parameter will map the WebFont of online page to local and then compress it (the local path must be an absolute path):

font-spider --map "http://font-spider.org/font,/Website/font" http://font-spider.org/index.html

Build plugins

API

See:API.md

Limitations

  • Only the constant texts and styles are supported, but not the dynamic elements and styles which is inserted by javascript.
  • The ".otf" format fonts should be transfered to ".ttf" format firstly, so that we can start our compressing work.
  • Only the HTML and CSS files which is encoded by utf-8 are supported.

[Link] 让 font-spider 支持 js 动态内容

[AD] 前端招聘:在海边写代码

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].