Sha256: c0f3e5f3cfce4a848db80b71389b97fb116c1225087991be4d6e3c3d9cb90b05

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

require 'cheapredwine/info'

include CheapRedWine

describe Info do
  it "get info out of an otf or ttf font file" do
    font = 'spec/fixtures/hobo.otf'
    info = Info.new font
    info.font_name.should eq "Hobo Std Medium"
    info.family_name.should eq "Hobo Std"
    info.style.should eq "Regular"
    info.features.should eq ["aalt", "frac", "liga", "ordn", "sups"]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cheapredwine-0.2.0 spec/info_spec.rb