You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each Typeface package ships with web-ready font files for each weight & style within the typeface. It also ships with a css file that if you're using certain web building tools like webpack (properly configured), to use the typeface in your project, you only need to require the css file.
It's possible you could get requiring working with require.js — but I'm not familiar with the tool. Perhaps https://github.com/guybedford/require-css could get you there.
But even if your web builder can't be configured to automatically include fonts, you could still use Typefaces to partially automate adding fonts as you could install the typefaces you want and then copy those files into the appropriate place.
You can see the file structure for one of the typefaces here:
I notice you write:
require("typeface-open-sans")
what if you don't have require.js? Should I add it require.js to my web app, or can I add the font another way?
The text was updated successfully, but these errors were encountered: