These are all available fonts for Storipress.
brew install woff2
- 從 Google Font 新增字體
- 下載以下這 4 種字型
- Regular 400
- Regular 400 Italic
- Bold 700
- Bold 700 Italic
- 在字型的資料夾中,執行
ls *.ttf | xargs -n 1 woff2_compress
轉換資料夾下的字型變成 woff2 - 照著檔名規則重新命名檔案
ex:
Open Sauce Sans [Bold Italic].woff2
- add font files to
fonts
directory - ensure your fonts follow the name conventions
- run
yarn build
andyarn test
to verify - push to github
- merge release branch to master
- manually publish packages/fonts-meta to github
- use fonts-showcase repo to verify fonts are working
- update builder
- update @storipress/fonts-meta version
- update the fonts css public/index.html
- update generator
- update fonts css
- publish builder with manager-next
NEVER touch it. It's optimized to handle font building. Never try to replace it with vite or other tools. They are not flexible enough.