Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

johngrimes/typefront-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Ruby gem for interacting with the TypeFront API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages