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

https://github.com/alfredxing/brick

Open-source webfont service
https://github.com/alfredxing/brick

font web-fonts

Last synced: 3 months ago
JSON representation

Open-source webfont service

Awesome Lists containing this project

README

        

### [Brick.](http://brick.im) Webfonts that actually look good.

[![Build Status](https://travis-ci.org/alfredxing/brick.svg?branch=gh-pages)](https://travis-ci.org/alfredxing/brick)

In the age of the Internet, we've found ourselves in yet another typographic battle. In an effort to speed up loading times, we've compressed fonts, and along the way, we've lost the majority of the quality of rendered type.

Let's change that. The fonts served by Brick are clones of the original, converted without modification to several formats for wider browser compatibility.

All fonts are served as WOFF-compressed versions of the originals—no quality lost.

### Usage

Okay, let's get started. I don't want to overload the GitHub servers, so the font serving takes place on another server. The loading itself is quite simple; kind of like using Google Web Fonts (but with more customization options—we'll get to that later).

Suppose you want to use a font that's in the catalog, for example, TeX Gyre Heros, and only in regular weight.
The stylesheet URL would be structured like this:
````
//brick.freetls.fastly.net/TeX+Gyre+Heros:400
````
And if you also want to load EB Garamond regular and italic, you can do that too:
````
//brick.freetls.fastly.net/TeX+Gyre+Heros:400/EB+Garamond:400,400i
````

Big shoutout to [Fastly](http://www.fastly.com), whose backing makes everything a lot faster, and [Linode](https://www.linode.com/), for providing a reliable origin server!

### Is it actually better?

You can see for yourself (best comparison is in Chrome; Firefox seems to render all fonts pretty well, though the difference is still clearly visible):

- [Brick](http://brick.im/preview/brick.html)
- [Google Fonts](http://brick.im/preview/google.html)

Take note of:

- Font rendering and smoothing
- Ligatures: the `fi` ligature in the title
- Kerning: the `Ve` pair in `Vestibulum`
- Character sets: although not demonstrated in the previews, Brick fonts include the entire character set that came with the original

Fonts used in the previews:
- EB Garamond (body text)
- Libre Baskerville (header and link)

### [Contributing](https://github.com/alfredxing/brick/wiki/Contributing)

For contributing guidelines and instructions, please see the [wiki page](https://github.com/alfredxing/brick/wiki/Contributing).