lib/origami/graphics/state.rb in origami-2.0.0 vs lib/origami/graphics/state.rb in origami-2.0.1
- old
+ new
@@ -131,19 +131,19 @@
field :TK, :Type => Boolean, :Version => "1.4"
end
end #module Graphics
class PDF::Instruction
- insn 'q' do |canvas| canvas.gs.save; canvas.gs.reset end
- insn 'Q' do |canvas| canvas.gs.restore end
- insn 'w', Real do |canvas, lw| canvas.gs.line_width = lw end
- insn 'J', Real do |canvas, lc| canvas.gs.line_cap = lc end
- insn 'j', Real do |canvas, lj| canvas.gs.line_join = lj end
- insn 'M', Real do |canvas, ml| canvas.gs.miter_limit = ml end
+ insn 'q' do |canvas| canvas.gs.save; canvas.gs.reset end
+ insn 'Q' do |canvas| canvas.gs.restore end
+ insn 'w', Real do |canvas, lw| canvas.gs.line_width = lw end
+ insn 'J', Real do |canvas, lc| canvas.gs.line_cap = lc end
+ insn 'j', Real do |canvas, lj| canvas.gs.line_join = lj end
+ insn 'M', Real do |canvas, ml| canvas.gs.miter_limit = ml end
- insn 'd', Array, Integer do |canvas, array, phase|
+ insn 'd', Array, Integer do |canvas, array, phase|
canvas.gs.dash_pattern = Graphics::DashPattern.new array, phase
end
- insn 'ri', Name do |canvas, ri| canvas.gs.rendering_intent = ri end
+ insn 'ri', Name do |canvas, ri| canvas.gs.rendering_intent = ri end
end
end