https://github.com/simbleau/fontsubset
Create a font subset from an existing font in SFNT (TrueType/OpenType), WOFF, or WOFF2 format. Uses harfbuzzjs, which is a WebAssembly build of HarfBuzz.
https://github.com/simbleau/fontsubset
Last synced: about 1 year ago
JSON representation
Create a font subset from an existing font in SFNT (TrueType/OpenType), WOFF, or WOFF2 format. Uses harfbuzzjs, which is a WebAssembly build of HarfBuzz.
- Host: GitHub
- URL: https://github.com/simbleau/fontsubset
- Owner: simbleau
- License: mit
- Created: 2022-06-30T16:58:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T21:18:48.000Z (almost 4 years ago)
- Last Synced: 2025-02-12T13:55:27.203Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 🍴 Fork
This project is a fork from [Jieiku](https://github.com/jieiku)'s [https://github.com/Jieiku/fontsubset](https://github.com/Jieiku/fontsubset).
# FontSubset
This project is used to generate font subsets which are extremely small and lightweight to use in projects such as my [blog](https://github.com/simbleau/blog) and [website](https://github.com/simbleau/website).
Simply edit the [package.json](package.json) file with the icons in a script to be included.
Setup:
```shell
git clone https://github.com/Jieiku/fontsubset
cd fontsubset
npm install fs path glob yaml subset-font
npm install --save-dev @fortawesome/fontawesome-free
```
Run:
```shell
npm run-script webiste
npm run-script blog
```
The above scripts generate the new fonts and output them to the assets folder, you will find these commands defined in the `package.json` file.
# Font inspection
I use [fontforge](https://fontforge.org/en-US/) to inspect the generated fonts for their code points.
---
❗ **More information: see [parent repository](https://github.com/Jieiku/fontsubset/blob/main/README.md).**