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.
Add this line to your application's Gemfile:
gem 'tipo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tipo
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' ... ]
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request