{"repo":"Munter/subfont","free":true,"listed":false,"github":"https://github.com/Munter/subfont","clone":"git clone https://github.com/Munter/subfont.git","description":"Command line tool to optimize your webfont loading. Aggressive subsetting based on your font use, self-hosting of Google fonts and preloading","language":"JavaScript","stars":1635,"topics":[],"license":"MIT","category":"cli-tools","readme_excerpt":"subfont A command line tool to statically analyse your page in order to generate the most optimal web font subsets, then inject them into your page. Speed up your time to first meaningful paint by reducing the web font payload and critical path to the font files. Subfont will: - Automatically figure out what characters are used from each font - Warn you about usage of characters that don't exist as glyphs in your webfonts - Create an exact subset of used characters of each font - Reduce the variation space of variable fonts based on the actual usage (when the --instance switch is used) - Generate web fonts in both woff2 and woff formats - Add preload hints for the subsets to reduce time to first meaningful paint - Give the subsetted fonts new names and prepend them in front of the original fonts in your font-family definitions (enables missing glyph fallback) - Async load your original @font-face declaring CSS at the bottom of your page, moving it off the critical path Currently supported font services: - Google fonts - Local fonts If you know of font services with liberal font usage licenses, open an issue and we'll add support for them Installation Get the basic CLI tool, which supports subsetting Google Fonts and optimizing all local fonts with preloading instructions: Recommended usage Run subfont on the files you are ready to deploy to a static file hosting service. If these are build artifacts from another build system, and not the original files, run subfont path/to/ar","default_branch":null,"files":null,"tree":[],"storefront":"/r/Munter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Munter/subfont/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}