Low commit activity in last 3 years
A long-lived project that still receives updates
A simple class for working with Big Cartel's supported theme fonts.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 10.5
~> 1.1
~> 2.14
 Project Readme

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"

How to Release a New Version

  1. Sign into rubygems.org with gem signin, credentials are in 1Password
  2. Bump version in bigcartel-theme-fonts.gemspec and commit it if it hasn't been already
  3. Run bundle exec rake release to cut a new version of the gem and upload it to RubyGems.org