lib/prawn/font/ttf.rb in prawn-1.2.1 vs lib/prawn/font/ttf.rb in prawn-1.3.0

- old
+ new

@@ -243,10 +243,10 @@ temp_name = @ttf.name.postscript_name.gsub("\0","").to_sym ref = @document.ref!(:Type => :Font, :BaseFont => temp_name) # Embed the font metrics in the document after everything has been # drawn, just before the document is emitted. - @document.before_render { |doc| embed(ref, subset) } + @document.renderer.before_render { |doc| embed(ref, subset) } ref end def embed(reference, subset)