git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added gfxfont_save() to gfxfont.{c,h}
[swftools.git]
/
lib
/
ruby
/
test.rb
diff --git
a/lib/ruby/test.rb
b/lib/ruby/test.rb
index
845de3e
..
dc96d1b
100644
(file)
--- a/
lib/ruby/test.rb
+++ b/
lib/ruby/test.rb
@@
-1,6
+1,6
@@
require 'gfx'
require 'gfx'
-pdf = GFX::PDF.new('test.pdf')
+pdf = GFX::PDF.new('segfault.pdf')
class TestRender < GFX::Device
def startpage(width,height)
class TestRender < GFX::Device
def startpage(width,height)
@@
-13,31
+13,31
@@
class TestRender < GFX::Device
puts "setparameter(#{key},#{value})"
end
def startclip(line)
puts "setparameter(#{key},#{value})"
end
def startclip(line)
- puts "startclip(#{line})"
+ puts "startclip(#{line.inspect})"
end
def endclip()
puts "endclip()"
end
def stroke(line, width, color, cap_style, joint_style, miterLimit)
end
def endclip()
puts "endclip()"
end
def stroke(line, width, color, cap_style, joint_style, miterLimit)
- puts "stroke(#{line}, #{width}, #{color}, #{cap_style}, #{joint_style}, #{miterLimit})"
+ puts "stroke(#{line.inspect}, #{width}, #{color.inspect}, #{cap_style}, #{joint_style}, #{miterLimit})"
end
def fill(line, color)
end
def fill(line, color)
- puts "fill(#{line}, #{color})"
+ puts "fill(#{line.inspect}, #{color.inspect})"
end
def fillbitmap(line, img, imgcoord2devcoord, cxform)
end
def fillbitmap(line, img, imgcoord2devcoord, cxform)
- puts "fillbitmap(#{line}, #{img}, #{imgcoord2devcoord}, #{cxform})"
+ puts "fillbitmap(#{line.inspect}, #{img}, #{imgcoord2devcoord}, #{cxform})"
end
def fillgradient(dev, line, gradient, type, gradcoord2devcoord)
end
def fillgradient(dev, line, gradient, type, gradcoord2devcoord)
- puts "fillgradient(#{line}, #{gradient}, #{type}, #{gradcoord2devcoord})"
+ puts "fillgradient(#{line.inspect}, #{gradient}, #{type}, #{gradcoord2devcoord})"
end
def addfont(font)
end
def addfont(font)
- puts "addfont(#{font})"
+ puts "addfont(#{font.name})"
end
def drawchar(font, glyph, color, matrix)
end
def drawchar(font, glyph, color, matrix)
- puts "drawchar(#{font}, #{glyph}, #{color}, #{matrix})"
+ puts "drawchar(#{font.name}, #{glyph}, #{color.inspect}, #{matrix.inspect})"
end
def drawlink(line, action)
end
def drawlink(line, action)
- puts "drawchar(#{line}, #{action})"
+ puts "drawchar(#{line.inspect}, #{action})"
end
end
end
end