File: 0300_fix_paths.patch

package info (click to toggle)
ruby-prawn 1.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,936 kB
  • ctags: 802
  • sloc: ruby: 13,906; sh: 43; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix fonts path to use only prawn's fonts directory
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2014-04-14

--- a/lib/prawn/font/afm.rb
+++ b/lib/prawn/font/afm.rb
@@ -28,9 +28,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