]> git.draconx.ca Git - gentoo-draconx.git/blob - 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
1 From 0ce58e3f3c78760aa1f2204325862113a71ef763 Mon Sep 17 00:00:00 2001
2 From: Nick Bowler <nbowler@draconx.ca>
3 Date: Sat, 28 Jan 2012 16:01:01 -0500
4 Subject: [PATCH] Add Gentoo font path to default search dir.
5
6 This allows Xpdf to automatically find the required type-1 fonts on
7 Gentoo.  The font paths can also be set in xpdfrc, but this approach is
8 more robust as the user's xpdfrc overrides the system-wide one.
9 ---
10  xpdf/GlobalParams.cc |    1 +
11  1 files changed, 1 insertions(+), 0 deletions(-)
12
13 diff --git a/xpdf/GlobalParams.cc b/xpdf/GlobalParams.cc
14 index 63e932b..7b7dc41 100644
15 --- a/xpdf/GlobalParams.cc
16 +++ b/xpdf/GlobalParams.cc
17 @@ -110,6 +110,7 @@ static const char *displayFontDirs[] = {
18  };
19  #else
20  static const char *displayFontDirs[] = {
21 +  "/usr/share/fonts/urw-fonts",
22    "/usr/share/ghostscript/fonts",
23    "/usr/local/share/ghostscript/fonts",
24    "/usr/share/fonts/default/Type1",
25 -- 
26 1.7.3.4
27