<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -178,28 +178,22 @@ module Prawn
         @font_metrics.string_width(text,size)
       end
 
+      # TODO: Get kerning working with wrapped text
       def wrapped_text(text,options)
+        options[:kerning] = false
         font_size(options[:size] || current_font_size) do
           font_name = font_registry[fonts[@font]]
 
-          text = @font_metrics.naive_wrap(text, bounds.right, current_font_size, :kerning =&gt; options[:kerning])
+          text = @font_metrics.naive_wrap(text, bounds.right, current_font_size, 
+            :kerning =&gt; options[:kerning])
 
-          # THIS CODE JUST DID THE NASTY. FIXME!
-          lines = text.lines
+          lines = text.lines.map { |t| 
+            @font_metrics.convert_text(t, options) }
 
-          if fonts[@font].data[:Subtype] == :Type0
-            lines = lines.map do |line|
-              unicode_codepoints = line.chomp.unpack(&quot;U*&quot;)
-              glyph_codes = unicode_codepoints.map { |u| 
-                enctables[@font].get_glyph_id_for_unicode(u)
-              }
-              glyph_codes.pack(&quot;n*&quot;)
-            end
-          end
-          
           lines.each do |e|
             move_text_position(@font_metrics.font_height(current_font_size) +
                                @font_metrics.descender / 1000.0 * current_font_size)
+
             add_content %Q{
               BT
               /#{font_name} #{current_font_size} Tf</diff>
      <filename>lib/prawn/document/text.rb</filename>
    </modified>
    <modified>
      <diff>@@ -376,6 +376,7 @@ module Prawn
         end
 
         def convert_text(text,options)
+          text = text.chomp
           if options[:kerning]
             kern(text)
           else</diff>
      <filename>lib/prawn/font/metrics.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c7e412ca43f4f522180235c0a64c5c9a7a5b781f</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/0fcc3530603a8d3d05e112cff39883038a213ce5</url>
  <id>0fcc3530603a8d3d05e112cff39883038a213ce5</id>
  <committed-date>2008-07-18T13:23:44-07:00</committed-date>
  <authored-date>2008-07-18T13:23:44-07:00</authored-date>
  <message>This should fix the newline bug I introduced, but may be weird</message>
  <tree>4db64b0b2d054581f77d3903109b1bfc71b8aefe</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
