lib/rtf/font.rb
def to_rtf(indent=0)
         prefix = indent > 0 ? ' ' * indent : ''
         text   = StringIO.new
         text << "#{prefix}{\\fonttbl"
         @fonts.each_index do |index|
            text << "\n#{prefix}{\\f#{index}#{@fonts[index].to_rtf}}"
         end
         text << "\n#{prefix}}"
         text.string
      end
def to_rtf(indent=0)
         prefix = indent > 0 ? ' ' * indent : ''
         text   = StringIO.new
         text << "#{prefix}{\\fonttbl"
         @fonts.each_index do |index|
            text << "\n#{prefix}{\\f#{index}#{@fonts[index].to_rtf}}"
         end
         text << "\n#{prefix}}"
         text.string
      end
def to_rtf ( indent = 0 ) prefix = indent > 0 ? ' ' * indent : '' text = StringIO . new text << "#{prefix}{\\fonttbl" @fonts . each_index do | index | text << "\n#{prefix}{\\f#{index}#{@fonts[index].to_rtf}}" end text << "\n#{prefix}}" text . string end
This method generates the RTF text for a FontTable object.

 ==== Parameters
 indent::  The number of spaces to prefix to the lines generated by the
           method. Defaults to zero.
This method generates the RTF text for a FontTable object .