Skip to content

storipress/font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Storipress fonts book

These are all available fonts for Storipress.

事前準備

  1. brew install woff2
  2. 從 Google Font 新增字體
  3. 下載以下這 4 種字型
    • Regular 400
    • Regular 400 Italic
    • Bold 700
    • Bold 700 Italic
  4. 在字型的資料夾中,執行 ls *.ttf | xargs -n 1 woff2_compress 轉換資料夾下的字型變成 woff2
  5. 照著檔名規則重新命名檔案

    ex: Open Sauce Sans [Bold Italic].woff2

Update steps

  1. add font files to fonts directory
  2. ensure your fonts follow the name conventions
  3. run yarn build and yarn test to verify
  4. push to github
  5. merge release branch to master
  6. manually publish packages/fonts-meta to github
  7. use fonts-showcase repo to verify fonts are working
  8. update builder
    1. update @storipress/fonts-meta version
    2. update the fonts css public/index.html
  9. update generator
    1. update fonts css
  10. publish builder with manager-next

About webpack

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published