mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
One family. Font stacks name Zen and fall back to the native faces, tokens name the role rather than a face, and the packages that used to supply a face now point at @hanzo/font. Self-hosted @font-face blocks are removed rather than renamed: rewriting the family in one would leave a src pointing at a file this repo no longer ships. @hanzo/font carries the binaries and declares the faces, so the local copies go with the declaration that used them. Comments naming a face we no longer use are deleted, not reworded.
To add new glyphs to the Inter fallback font:
- Download and install FontForge.
- Download the Inter typefaces.
- In FontForge, open the Inter Regular typeface from the web directory.
- Find the desired glyph (e.g., a missing symbol or character).
- Copy the glyph (Edit > Copy or Cmd+C).
- Open the
Inter-fallback.sfdfile in FontForge. - Go to the correct Unicode slot for the glyph (use Encoding > Goto or right-click > Goto, then enter the Unicode value).
- Paste the glyph into the slot (Edit > Paste or Cmd+V).
- Generate a new .ttf file
- To use pyftsubset tool run
brew install fonttools - Adjust the range of included glyphs and run the script
pyftsubset <path-to-ttf-file> \ --output-file=./public/static/fonts/Inter-fallback.woff2 \ --flavor=woff2 \ --unicodes=U+2192