X-Git-Url: http://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/6cbafea9bddf0954f8f473a4a4c0f9bf23efcfd6..f8fa2488b9b722695c313de631c5dbea2af2521f:/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 index 0000000..2a7f834 --- /dev/null +++ b/app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch @@ -0,0 +1,27 @@ +From 0ce58e3f3c78760aa1f2204325862113a71ef763 Mon Sep 17 00:00:00 2001 +From: Nick Bowler +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 +