components-ai / typefaces

Collection of Google fonts as typeface data for usage with three.js, react-three-fiber, and other tools.
https://components.ai/docs/typefaces
MIT License
73 stars 2 forks source link

Typeface data should end up as requires from local file #1

Open johno opened 3 years ago

johno commented 3 years ago

In order to avoid duplicate data we should have a structure like:

{
  // ...
  typefaces: {
    normal: {
      400: require('./typefaces/normal-400.json')
      // ...
    }
    // ...
  }
}

This should knock out about half the size of installed font packages, ending up in the range of 250-700kB.