Sha256: 054084585f636d684fafda6ad04ae9689b2149801769a89610919adb39f7587d

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

require 'tipo'

module CheapRedWine
  class Info
    def initialize file
      @info = Tipo.info file
    end

    def font_name
      @info.naming.name
    end

    def family_name
      @info.naming.family_name
    end

    def style
      @info.naming.style
    end

    def features
      @info.substitution.feature_list.map do |fea|
        fea.tag
      end.uniq
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cheapredwine-0.2.0 lib/cheapredwine/info.rb