Big Cartel Theme Fonts Build Status Gem Version

A simple class for working with Big Cartel's supported theme fonts. Used internally by Big Cartel and Dugway.

Install

Add this line to your application's Gemfile:

gem 'bigcartel-theme-fonts'

And then execute:

bundle

Or install it yourself as:

gem install bigcartel-theme-fonts

Usage

georgia = ThemeFont.find_by_name('Georgia')
georgia.name #=> 'Georgia'
georgia.family #=> 'Georgia, "Times New Roman", Times, serif'
georgia.collection #=> 'default'
ThemeFont.google_font_url_for_all_fonts #=> "//fonts.googleapis.com/css?family=One|Two"