Skip to content

hugobast/tipo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tipo

Code Climate Build Status

This is very early work but Tipo is meant to be a pure ruby OpenType and TrueType font format reader. Support for more tables and information to come.

Installation

Add this line to your application's Gemfile:

gem 'tipo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tipo

Usage

Very narrow interface:

info = Tipo.info 'path/to/font.{otf|ttf}'
info.naming.font   # => "Font Name"
info.naming.style  # => "Italic"

info.substitution.feature_list.map do |feature|
  feature.tag
end.uniq           # => ['aalt', 'dlig', 'liga' ... ]

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

(Incomplete) Pure Ruby OpenType font file reader

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages