lib/cheapredwine.rb in cheapredwine-0.1.1 vs lib/cheapredwine.rb in cheapredwine-0.2.0

- old
+ new

@@ -1,13 +1,13 @@ require "cheapredwine/version" -require "cheapredwine/ttx" +require "cheapredwine/info" require "cheapredwine/image" module CheapRedWine class Meta - attr_accessor :name, :family, :features, :path + attr_accessor :name, :family, :features, :path, :style def initialize yield(self) if block_given? end @@ -15,14 +15,15 @@ File.new(path) end end def self.meta(file) - parser = TTX.for_font(file) + parser = Info.new file Meta.new do |meta| meta.name = parser.font_name meta.family = parser.family_name meta.features = parser.features + meta.style = parser.style meta.path = file end end def self.image(font, text, options = {})