DEV Community

Discussion on: Instantly speed up your Rails application by self-hosting your fonts

Collapse
 
tonydehnke profile image
Tony Dehnke • Edited

Hmm, just looked for one of my fonts.. seems that Typeface is being depreciated. They recommend to use FontSource now

npmjs.com/package/typeface-inter

The Typefaces project is now deprecated.

@DecliningLotus created FontSource which provides the same functionality as Typefaces but with automated releases & richer support for importing specific weights, styles, or language subsets.

To start using Fontsource, replace in your package.json any instances of "typeface-inter" with "fontsource-inter".

Then change imports from "import 'typeface-inter'" to "import 'fontsource-inter/latin.css'".

Typeface packages will continue working indefinitely so no immediate changes are necessary.
Enter fullscreen mode Exit fullscreen mode