prawn-ruby/pdf-core-0.6.0/lib/pdf/core/text.rb
# Increases or decreases the space between words.
# For horizontal text, a positive value will increase the space.
# For veritical text, a positive value will decrease the space.
#
Increases or decreases the space between words.
For horizontal text, a positive value will increase the space.
For veritical text, a positive value will decrease the space.
Increases or decreases the space between words . For horizontal text a positive value will increase the space . For veritical text a positive value will decrease the space .
def word_spacing(amount=nil)
        return defined?(@word_spacing) && @word_spacing || 0 if amount.nil?
        original_word_spacing = word_spacing
        if original_word_spacing == amount
          yield
        else
          @word_spacing = amount
          add_content "\n#{PDF::Core.real(amount)} Tw"
          yield
          add_content "\n#{PDF::Core.real(original_word_spacing)} Tw"
          @word_spacing = original_word_spacing
        end
      end
def word_spacing ( amount = nil ) return defined? ( @word_spacing ) && @word_spacing || 0 if amount . nil? original_word_spacing = word_spacing if original_word_spacing == amount yield else @word_spacing = amount add_content "\n#{PDF::Core.real(amount)} Tw" yield add_content "\n#{PDF::Core.real(original_word_spacing)} Tw" @word_spacing = original_word_spacing end end
Increases or decreases the space between words.
Increases or decreases the space between words .
amount
<not_specific>