examples/paymentfont.rb in prawn-icon-2.5.0 vs examples/paymentfont.rb in prawn-icon-3.0.0

- old
+ new

@@ -2,11 +2,12 @@ require_relative '../lib/prawn/icon' require_relative 'example_helper' Prawn::Document.generate('paymentfont.pdf') do - deja_path = File.join \ - Prawn::Icon::Base::FONTDIR, 'DejaVuSans.ttf' + deja_path = Prawn::Icon.configuration.font_directory + .join('DejaVuSans.ttf') + .to_s font_families.update({ 'deja' => { normal: deja_path } })