vendor/gems/prawn-0.3.0/lib/prawn/font.rb
# Sets the default font size for use within a block. Individual overrides
# can be used as desired. The previous font size will be restored after the
# block.
#
# Prawn::Document.generate("font_size.pdf") do
#   font.size = 16
#   text "At size 16"
#
#   font.size(10) do
#     text "At size 10"
#     text "At size 6", :size => 6
#     text "At size 10"
#   end
#
#   text "At size 16"
# end
#
# When called without an argument, this method returns the current font
# size.
#
Sets the default font size for use within a block. Individual overrides
can be used as desired. The previous font size will be restored after the
block.





text "At size 16"
end

When called without an argument, this method returns the current font
size.
Sets the default font size for use within a block . Individual overrides can be used as desired . The previous font size will be restored after the block . text " At size 16 " end When called without an argument this method returns the current font size .
def size(points=nil)      
      return @size unless points
      size_before_yield = @size
      @size = points
      yield
      @size = size_before_yield
    end
def size ( points = nil ) return @size unless points size_before_yield = @size @size = points yield @size = size_before_yield end
Sets the default font size for use within a block.
Sets the default font size for use within a block .
points
<not_specific>