<rss version="2.0">
  <channel>
    <title>Haberdasher patches (PDF::Writer)</title>
    <link>http://haberdasherhq.org</link>
    <description>Patches for PDF::Writer</description>
    <language>en-en</language>
    <item>
      <title>PDF::Writer - Some fake patch, subversion diff</title>
      <description>&lt;pre&gt;Index: test/tc_latex_pdf_compiler.rb
===================================================================
--- test/tc_latex_pdf_compiler.rb	(revisi&#243;n: 146)
+++ test/tc_latex_pdf_compiler.rb	(copia de trabajo)
@@ -33,6 +33,6 @@
     end
 
     def teardown
-        FileUtils.rm_rf(LATEX_TMP_DIR)
+        FileUtils.rm_rf(LATEX_TMP_DIR) unless DEBUG
     end
 end
&lt;/pre&gt;</description>
      <pubDate>Mon, 15 Oct 2007 22:53:57 +0100</pubDate>
      <link>http://haberdasherhq.org/demo/patches/show/15</link>
      <guid>http://haberdasherhq.org/demo/patches/show/15</guid>
    </item>
    <item>
      <title>PDF::Writer - Some fake patch, context diff</title>
      <description>&lt;pre&gt;*** a.txt       2007-10-15 22:38:51.000000000 +0100
--- b.txt       2007-10-15 22:41:38.000000000 +0100
***************
*** 1,6 ****
! Hello, World!
! -------------

  Some interesting stuff to read. Some interesting stuff to read. Some
  interesting stuff to read. Some interesting stuff to read. Some interesting
  stuff to read. Some interesting stuff to read.
--- 1,8 ----
! Hello, Universe!
! ================

  Some interesting stuff to read. Some interesting stuff to read. Some
  interesting stuff to read. Some interesting stuff to read. Some interesting
  stuff to read. Some interesting stuff to read.
+
+ Some really crazy ideas about ruling the world and conquering the Universe.
&lt;/pre&gt;</description>
      <pubDate>Mon, 15 Oct 2007 22:46:17 +0100</pubDate>
      <link>http://haberdasherhq.org/demo/patches/show/14</link>
      <guid>http://haberdasherhq.org/demo/patches/show/14</guid>
    </item>
    <item>
      <title>PDF::Writer - Fix font embedding issues</title>
      <description>&lt;pre&gt;diff -u -r origlib/pdf/writer/object/font.rb dest/pdf/writer/object/font.rb
--- origlib/pdf/writer/object/font.rb	2006-07-26 12:26:37.000000000 +0100
+++ dest/pdf/writer/object/font.rb	2006-09-03 01:29:07.000000000 +0100
@@ -35,14 +35,14 @@
     @fontdescriptor = nil
   end
 
-  attr_reader :font_id
+  attr_accessor :font_id
     # The type of the font: Type1 and TrueType are the only values supported
     # by 
-  attr_reader :subtype
+  attr_accessor :subtype
     # Valid values: WinAnsiEncoding, MacRomanEncoding, MacExpertEncoding,
     # none, +nil+, or an instance of PDF::Writer::Object::FontEncoding.
-  attr_reader :encoding
-  attr_reader :basefont
+  attr_accessor :encoding
+  attr_accessor :basefont
   def basefont #:nodoc:
     @name
   end
diff -u -r origlib/pdf/writer.rb dest/pdf/writer.rb
--- origlib/pdf/writer.rb	2006-07-26 12:26:37.000000000 +0100
+++ dest/pdf/writer.rb	2006-09-03 02:45:07.000000000 +0100
@@ -835,7 +835,7 @@
       end
     end
 
-    if font =~ /afm/o and fontfile
+    if fontfile
         # Find the array of font widths, and put that into an object.
       first_char  = -1
       last_char   = 0
@@ -857,7 +857,7 @@
         encoding_diff.each do |cnum, cname|
           (cnum - last_char).times { widths &lt;&lt; 0 } if cnum &gt; last_char
           last_char = cnum
-          widths[cnum - firstchar] = fonts.c[cname]['WX'] if metrics.c[cname]
+          widths[cnum - first_char] = metrics.c[cname]['WX'] if metrics.c[cname]
         end
       end
 
@@ -875,7 +875,8 @@
         # Load the pfb file, and put that into an object too. Note that PDF
         # supports only binary format Type1 font files and TrueType font
         # files. There is a simple utility to convert Type1 from pfa to pfb.
-      data = File.open(fbfile, "rb") { |ff| ff.read }
+      data = File.open(fontfile, "rb") { |ff| ff.read }
+      fbtype = fontfile
 
         # Check to see if the font licence allows embedding.
       if fbtype =~ /\.ttf$/o
&lt;/pre&gt;</description>
      <pubDate>Tue, 05 Sep 2006 18:14:24 +0100</pubDate>
      <link>http://haberdasherhq.org/demo/patches/show/7</link>
      <guid>http://haberdasherhq.org/demo/patches/show/7</guid>
    </item>
  </channel>
</rss>
