Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imedadel/typeface-eb-garamond-latest

CSS and web font files to easily self-host EB Garamond
https://github.com/imedadel/typeface-eb-garamond-latest

eb-garamond font js typeface typography

Last synced: 7 days ago
JSON representation

CSS and web font files to easily self-host EB Garamond

Awesome Lists containing this project

README

        

# Typeface EB Garamond Latest

The CSS and web font files to easily self-host [EB Garamond](http://www.georgduffner.at/ebgaramond/). This package is inspired by the effort of Kyle Mathews to create [npm packages for all typefaces](https://www.bricolage.io/typefaces-easiest-way-to-self-host-fonts/) to improve font loading performance.

## Install

```
npm install --save typeface-eb-garamond-latest
```

## Usage

This package assumes you’re using webpack to process CSS and font files. Each typeface package includes all font files for modern browsers (WOFF2 and WOFF) and a CSS file with font-face declarations pointing at these files.

You will need to have webpack or a different bundler setup to load css and font files. Many tools built with Webpack will work out of the box with Typefaces such as [Create React App](https://github.com/facebookincubator/create-react-app) and [Gatsby](https://github.com/gatsbyjs/gatsby).

Simply require the package in your project’s entry file:

```javascript
// Load the Public Sans typeface
import 'typeface-eb-garamond-latest';
```