to_s (PDF::Writer::Object::FontEncoding)

        # File lib/pdf/writer/object/fontencoding.rb, line 23
    23:   def to_s
    24:     res = "\n#{@oid} 0 obj\n<< /Type /Encoding\n"
    25:     enc = @encoding || 'WinAnsiEncoding'
    26:     res << "/BaseEncoding /#{enc}\n" unless enc == 'none'
    27:     unless @differences.nil? or @differences.empty?
    28:       res << "/Differences \n["
    29:       n = nil
    30:       @differences.keys.sort.each do |k|
    31:           # Cannot make use of consecutive numbering
    32:         res << "\n#{k} " if n.nil? or k != (n + 1)
    33:         res << " /#{@differences[k]}"
    34:         n = k
    35:       end
    36:       res << "\n]"
    37:     end
    38:     res << "\n>>\nendobj"
    39:   end