No release in over 3 years
Low commit activity in last 3 years
Add Adobe's Source Sans Pro Font to your Rails app through the asset pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

>= 3.2
 Project Readme

source-sans-pro-rails Gem Version Build Status

Adds Adobe's Source Sans Pro font to Rails via the asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'source-sans-pro-rails'

And then execute:

$ bundle

Usage

If you want to include all of the font weight variations, simply add this to application.css:

/*
 *= require source-sans-pro
 */

You can also load just the font variants that are interesting to you. They are in the source-sans-pro directory, so just change the above line to:

/*
 *= require source-sans-pro/regular
 *= require source-sans-pro/bold
 */

And so forth. Currently, the supported font variants are:

  • Regular (regular)
  • Italic (italic)
  • Light (light - font weight 300)
  • Extra Light (extralight - font weight 100)
  • Semibold (semibold - font weight 600)
  • Bold (bold)
  • Black (black - font weight 800)

Add it to your CSS styles:

font-family: 'SourceSansPro';

And adjust the weight in the same way as with any other font:

font-weight: 400;

Building

Font files were downloaded directly from the latest release of https://github.com/adobe-fonts/source-sans-pro.

License

  • The Adobe Source Sans Pro font is licensed under the SIL Open Font License
  • This project is licensed under the MIT License.

Thanks

  • Adobe for open sourcing this font
  • font-awesome-rails for a good example of creating a font gem for the asset pipeline