[hyperrogue] 14/19: Refresh system-dejavu.patch

Markus Koschany apo at moszumanska.debian.org
Mon Jul 17 19:14:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository hyperrogue.

commit 94414963ab849fb5e86413e466bad952051ed505
Author: Markus Koschany <apo at debian.org>
Date:   Mon Jul 17 20:11:35 2017 +0200

    Refresh system-dejavu.patch
---
 debian/patches/optimization.patch  |  2 +-
 debian/patches/series              |  1 +
 debian/patches/system-dejavu.patch | 23 +++++++++++++++++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/debian/patches/optimization.patch b/debian/patches/optimization.patch
index 66016d7..2438637 100644
--- a/debian/patches/optimization.patch
+++ b/debian/patches/optimization.patch
@@ -9,7 +9,7 @@ Forwarded: not-needed
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/Makefile b/src/Makefile
-index 6e91eba..3ba3c9f 100644
+index 6e91eba..3ba3c9f 100755
 --- a/src/Makefile
 +++ b/src/Makefile
 @@ -6,7 +6,7 @@ savepng-loc.o: savepng.c
diff --git a/debian/patches/series b/debian/patches/series
index 8dde9d7..fa20ace 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 optimization.patch
+system-dejavu.patch
diff --git a/debian/patches/system-dejavu.patch b/debian/patches/system-dejavu.patch
new file mode 100644
index 0000000..3fa790d
--- /dev/null
+++ b/debian/patches/system-dejavu.patch
@@ -0,0 +1,23 @@
+From: Markus Koschany <apo at debian.org>
+Date: Mon, 17 Jul 2017 20:11:06 +0200
+Subject: system dejavu
+
+Use Debian's system font.
+Forwarded: not-needed
+---
+ src/graph.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/graph.cpp b/src/graph.cpp
+index c7ec8c5..b9bb036 100644
+--- a/src/graph.cpp
++++ b/src/graph.cpp
+@@ -174,7 +174,7 @@ void loadfont(int siz) {
+ #ifdef WEB
+     font[siz] = TTF_OpenFont("sans-serif", siz);
+ #else
+-    font[siz] = TTF_OpenFont("DejaVuSans-Bold.ttf", siz);
++    font[siz] = TTF_OpenFont("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", siz);
+ #endif
+     // Destination set by ./configure (in the GitHub repository)
+     #ifdef FONTDESTDIR

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/hyperrogue.git



More information about the Pkg-games-commits mailing list