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"
How to Release a New Version
- Sign into rubygems.org with
gem signin
, credentials are in 1Password - Bump version in
bigcartel-theme-fonts.gemspec
and commit it if it hasn't been already - Run
bundle exec rake release
to cut a new version of the gem and upload it to RubyGems.org