markmcconachie/asap-font-rails


License: OFL-1.1

Language: Ruby


asap-font-rails

Adds the ASAP font by Omnibus Type to the Rails 3.1+ asset pipeline.

I made this as an example of how to embed @font-face fonts in a ruby gem

Installation

Add this line to your application's Gemfile:

gem 'asap-font-rails'

And then execute:

$ bundle

Usage

In your application.css you can choose to include all 4 variations or include them individually

# Include all
*= require 'asap-font'

# Include only bold
*= require 'asap-font/bold'

You can choose 'asap-font/regular' 'asap-font/bold' 'asap-font/italic' and 'asap-font/bold-italic'

Then you can assign these using standard css font-family

body {
  font-family: 'AsapRegular', sans-serif;
}

header#masthead h1 {
  font-family: 'AsapBold', sans-serif;
}

Available font-familys are 'AsapRegular', 'AsapItalic', 'AsapBold' and 'AsapBoldItalic'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Project Statistics

Sourcerank 2
Repository Size 507 KB
Stars 1
Forks 1
Watchers 1
Open issues 0
Dependencies 51
Contributors 1
Tags 1
Created
Last updated
Last pushed

Top Contributors See all

Mark McConachie

Recent Tags See all

v0.0.1 April 21, 2012

Interesting Forks See all

RailsFonts/asap-font-rails
Ruby - OFL-1.1 - Updated - 1 stars

Something wrong with this page? Make a suggestion

Login to resync this repository