]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch
Add upstream Xpdf ebuild.
[gentoo-draconx.git] / app-text / xpdf / files / xpdf-Add-Gentoo-font-path.patch
diff --git a/app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch b/app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch
new file mode 100644 (file)
index 0000000..2a7f834
--- /dev/null
@@ -0,0 +1,27 @@
+From 0ce58e3f3c78760aa1f2204325862113a71ef763 Mon Sep 17 00:00:00 2001
+From: Nick Bowler <nbowler@draconx.ca>
+Date: Sat, 28 Jan 2012 16:01:01 -0500
+Subject: [PATCH] Add Gentoo font path to default search dir.
+
+This allows Xpdf to automatically find the required type-1 fonts on
+Gentoo.  The font paths can also be set in xpdfrc, but this approach is
+more robust as the user's xpdfrc overrides the system-wide one.
+---
+ xpdf/GlobalParams.cc |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/xpdf/GlobalParams.cc b/xpdf/GlobalParams.cc
+index 63e932b..7b7dc41 100644
+--- a/xpdf/GlobalParams.cc
++++ b/xpdf/GlobalParams.cc
+@@ -110,6 +110,7 @@ static const char *displayFontDirs[] = {
+ };
+ #else
+ static const char *displayFontDirs[] = {
++  "/usr/share/fonts/urw-fonts",
+   "/usr/share/ghostscript/fonts",
+   "/usr/local/share/ghostscript/fonts",
+   "/usr/share/fonts/default/Type1",
+-- 
+1.7.3.4
+