If you want to modify FiraCode.glyphs and build your own OTF/TTF/WOFF files, you can use the provided build scripts on macOS or via Docker.
macOS Build
- Install build tools:
./script/bootstrap_macos.sh - Build fonts:
./script/build.sh - Install OTF files to
~/Library/Fonts.
Docker Build
Use make to install dependencies and build, or make package to bundle the dist/ files into a zip.
Customizing the Build
You can pass flags to ./script/build.sh to permanently bake specific features into your custom font files:
-f, --features: A comma-separated list of features (e.g., ss02,cv03).-n, --family-name: The desired font family name. Using features as the name appends the enabled features to the family name.-w, --weights: Limit the generated font weights (e.g., Regular,Bold).
# Example: Build a custom version with specific features and a custom name
./script/build.sh --features "ss02,ss08,ss10,cv03,cv07,cv14" --family-name "Fira Code straight" --weights "Regular,Bold"
# Example: Using Docker to create a family name that includes feature names
docker run --rm -v "${PWD}":/opt tonsky/firacode:latest ./script/build.sh -f "cv01,cv02,cv06,ss01,zero,onum,ss03,ss04,cv31" -n "features"