alfredxing / brick

Open-source webfont service
http://brick.im
2.87k stars 96 forks source link

Create and register bower packages #34

Open sgtpep opened 10 years ago

sgtpep commented 10 years ago

It could be great to be able to run something like bower install brick-open-sans and almost instantly be ready to use it.

But it may require to create separate git repository for each font, because it has no sense to register package with all of brick fonts.

alfredxing commented 10 years ago

I'm not too familiar with Bower, but from what I know, I don't think Brick is suitable for it. Firstly, there's the multiple repository issue; then there's the issue that Brick is used by adding a <link> tag to your HTML pages (I'm not sure Bower can do this), and not a file resource like jQuery.

sgtpep commented 10 years ago

A lot of binary resources already distributed with bower, including custom fonts. Example: http://bower.io/search/?q=open-sans. The only things that package should contain are: .woff file(s), and .css file with @font-face declaration. Optionally, it can contain .less/.scss file, besides .css, which allow you to redefine path to font files with some variable. Example: https://github.com/FontFaceKit/open-sans.

The inclusion of resources from bower packages is manual by adding needed / Githubissues.

  • Githubissues is a development platform for aggregating issues.