This build plan includes only glyphs U+0000-036F
to reduce the filesize of font files (which are much larger than normal for the web, but I really like it).
Font files are stored as public assets with a custom stylesheet for loading.
To rebuild the font files for any reason, replicate the process:
npm run build webfont-unhinted::IosevkaCustom
cp dist/IosevkaCustom/WOFF2-Unhinted/*.woff2 <project-root>/public/assets/IosevkaCustom@30.3.0
When excluding glyphs, codepoints.net is a helpful reference. Convert the hexadecimal values to decimal for use in TOML.
Note: the font directory is named for the latest version at the time of writing and should be updated as applicable if the font files are rebuilt in future.
This solution is work in progress, mainly because font files are quite large. I have already taken some steps to reduce client-side impact:
downloadable font: maxp: Bad maxZones: 0
) but reduces file size noticeablyThere may be opportunity for further optimisation, but for now I'm happy especially since all other resources are so lightweight.