[DRE-commits] [SCM] ruby-prawn.git branch, master, updated. upstream/1.0.0_rc1-44-g6e97afc

Cédric Boutillier cedric.boutillier at gmail.com
Thu Nov 24 23:11:58 UTC 2011


The following commit has been merged in the master branch:
commit a2748c8bb5b34485218e51f4197d027e626e56e8
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Tue Nov 15 23:52:33 2011 +0100

    patch: fix font path

diff --git a/debian/patches/0300_fix_paths.patch b/debian/patches/0300_fix_paths.patch
new file mode 100644
index 0000000..7c370b2
--- /dev/null
+++ b/debian/patches/0300_fix_paths.patch
@@ -0,0 +1,17 @@
+Description: fix fonts path to use only prawn's fonts directory
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update: 2011-11-15
+
+--- a/lib/prawn/font/afm.rb
++++ b/lib/prawn/font/afm.rb
+@@ -25,9 +25,7 @@
+           @metrics_path ||= m.split(':')
+         else
+           @metrics_path ||= [
+-            ".", "/usr/lib/afm",
+-            "/usr/local/lib/afm",
+-            "/usr/openwin/lib/fonts/afm/",
++            # use Prawn's font directories (Debian patch)
+              Prawn::DATADIR+'/fonts/']
+         end
+       end
diff --git a/debian/patches/series b/debian/patches/series
index 0b0931e..bc1aa2b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0100_remove_bundler_rubygems_stuff.patch
 0200_replace_BASEDIR_data_by_DATADIR.patch
 0210_change_spec_data_to_datadir_pdfs.patch
+0300_fix_paths.patch

-- 
ruby-prawn.git



More information about the Pkg-ruby-extras-commits mailing list