⚠️ The repository has been archived, and I recommend using the better alternative cn-font-split。
font-caster
font-caster: A Minimalist Font-Subsetting Library for Streamlining Font Files
(Only supports Node.js runtime.)
Document
Please check this document, it supports English
and 简体中文
.
Important Note on Subsetting
Fira Code
If you obtain
Fira Code
from GitHub, the browser may not parse the subset file correctly due to missing metadata. In contrast,Fira Code
from Google Fonts does not have this issue. For effective subsetting, it's recommended to useFira Code
sourced from Google Fonts. Google Fonts currently offers version5
ofFira Code
, while GitHub provides version6
. Notably,Fira Code
is expected to update its versions on Google Fonts soon.
License
font-caster is distributed under the MIT License
Versioning
font-caster adheres to Semantic Versioning 2.0.0
Thanks
Special thanks to opentype.js, as font-caster is developed upon it.