prawn-ruby/pdf-core-0.6.0/lib/pdf/core/text.rb
# Low level call to set the current font style and extract text options from
# an options hash. Should be called from within a save_font block
#
Low level call to set the current font style and extract text options from
an options hash. Should be called from within a save_font block
Low level call to set the current font style and extract text options from an options hash . Should be called from within a save_font block
def process_text_options(options)
        if options[:style]
          raise "Bad font family" unless font.family
          font(font.family, :style => options[:style])
        end
        unless options[:kerning] == false
          options[:kerning] = font.has_kerning_data?
        end
        options[:size] ||= font_size
      end
def process_text_options ( options ) if options [ :style ] raise "Bad font family" unless font . family font ( font . family , :style => options [ :style ] ) end unless options [ :kerning ] == false options [ :kerning ] = font . has_kerning_data? end options [ :size ] ||= font_size end
Low level call to set the current font style and extract text options from
an options hash.
Low level call to set the current font style and extract text options from an options hash .
# must compare against false to keep kerning on as default
options
<not_specific>