Browse files

Fix path to testing otf

  • Loading branch information...
1 parent 72829b0 commit 4159f27864d2b92068c80ba5690d3b5834638b7e @pepe committed Nov 11, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 Gemfile.lock
  2. +5 −5 spec/glyphr_spec.rb
View
2 Gemfile.lock
@@ -1,5 +1,5 @@
GIT
- remote: git@github.com:pepe/ft2-ruby.git
+ remote: git://github.com/LastStar/ft2-ruby.git
revision: 5f5b74959711feb1d0f9b2151871087375ddffd5
specs:
ft2-ruby (0.1.3)
View
10 spec/glyphr_spec.rb
@@ -74,7 +74,7 @@
end
end
context 'Comparing output' do
- let(:renderer) {renderer = Glyphr::Renderer.new("spec/fixtures/metalista.otf", 72)}
+ let(:renderer) {renderer = Glyphr::Renderer.new(font_file, 72)}
before do
renderer.image_width = 280
renderer.render('hello world')
@@ -89,7 +89,7 @@
end
end
context 'Rendering array of glyphs' do
- let(:renderer) {renderer = Glyphr::Renderer.new("spec/fixtures/metalista.otf", 72)}
+ let(:renderer) {renderer = Glyphr::Renderer.new(font_file, 72)}
before do
renderer.image_width = 280
end
@@ -109,14 +109,14 @@
end
end
context 'Converting text to glyphs array' do
- let(:renderer) {renderer = Glyphr::Renderer.new("spec/fixtures/metalista.otf", 72)}
+ let(:renderer) {renderer = Glyphr::Renderer.new(font_file, 72)}
it 'converts string to glyphs array' do
renderer.glyphs_from(['Hello World'])
renderer.glyph_codes.should == [11, 133, 140, 140, 143, 3, 26, 143, 146, 140, 132]
end
end
context 'Matrix image computing' do
- let(:renderer) {renderer = Glyphr::Renderer.new("spec/fixtures/metalista.otf", 48)}
+ let(:renderer) {renderer = Glyphr::Renderer.new(font_file, 48)}
before do
renderer.h_advance = 110
renderer.v_advance = 110
@@ -134,7 +134,7 @@
end
end
context 'Rendering to grid' do
- let(:renderer) {renderer = Glyphr::Renderer.new("spec/fixtures/metalista.otf", 48)}
+ let(:renderer) {renderer = Glyphr::Renderer.new(font_file, 48)}
it 'renders on constant horizontal advance' do
renderer.image_width = 740
renderer.h_advance = 70

0 comments on commit 4159f27

Please sign in to comment.