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