UNPKG

1.12 kBMarkdownView Raw
1
2# typeface-roboto
3
4The CSS and web font files to easily self-host “Roboto”.
5
6## Install
7
8`npm install --save typeface-roboto`
9
10## Use
11
12Typefaces assume you’re using webpack to process CSS and files. Each typeface
13package includes all necessary font files (woff2, woff, eot, ttf, svg) and
14a CSS file with font-face declerations pointing at these files.
15
16You will need to have webpack setup to load css and font files. Many tools built
17with Webpack will work out of the box with Typefaces such as [Gatsby](https://github.com/gatsbyjs/gatsby)
18and [Create React App](https://github.com/facebookincubator/create-react-app).
19
20To use, simply require the package in your project’s entry file e.g.
21
22```javascript
23// Load Roboto typeface
24require('typeface-roboto')
25```
26
27## About the Typefaces project.
28
29Our goal is to add all open source fonts to NPM to simplify using great fonts in
30our web projects. We’re currently maintaining 832 typeface packages
31including all typefaces on Google Fonts.
32
33If your favorite typeface isn’t published yet, [let us know](https://github.com/KyleAMathews/typefaces)
34and we’ll add it!