lib/prawn/svg/parser.rb in prawn-svg-0.12.0.2 vs lib/prawn/svg/parser.rb in prawn-svg-0.12.0.3
- old
+ new
@@ -139,11 +139,11 @@
when 'title', 'desc', 'metadata'
# ignore
do_not_append_calls = true
- when 'font-face'
+ when 'font-face', 'clipPath'
# not supported
do_not_append_calls = true
when 'image'
@svg_image ||= Image.new(@document)
@@ -164,9 +164,11 @@
commands = @svg_path.parse(element.attributes['d'])
rescue Prawn::Svg::Parser::Path::InvalidError => e
commands = []
@document.warnings << e.message
end
+
+ element.add_call 'join_style', :bevel
commands.collect do |command, args|
if args && args.length > 0
point_to = [x(args[0]), y(args[1])]
if command == 'curve_to'