Project

typefront

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Ruby library for interacting with the TypeFront API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 1.4.3
>= 1.5.0
 Project Readme

TypeFront for Ruby

IMPORTANT NOTE: This repository is no longer actively maintained.

This is a wrapper around TypeFront's RESTful API for adding, removing, updating and getting details about your fonts being served by TypeFront.

Check out the TypeFront API Documentation for more information.

Installation

gem install typefront

Setup

typefront = TypeFront.new('login', 'password')

Getting a listing of your fonts

typefront.fonts

Getting the details of a font

typefront.font_details(101)

Uploading a new font

typefront.upload_font(File.new('somefont.ttf'))

Remove font

typefront.remove_font(101)

Activate a font format

typefront.activate_format(101, 301)

Disable a font format

typefront.disable_format(101, 301)

Add new allowed domain

typefront.add_domain(101, 'http://somedomain.com')

Remove allowed domain

typefront.remove_domain(101, 201)


Copyright (c) 2010 Small Spark Pty Ltd, released under the Apache License 2.0.