[hyperrogue] 14/30: Add system-dejavu.patch and replace 10-fontconfig.patch.
Markus Koschany
apo at moszumanska.debian.org
Fri Sep 9 22:55:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository hyperrogue.
commit a9de147f65747ff882fde9ebf897ba00e5c52dd1
Author: Markus Koschany <apo at debian.org>
Date: Fri Sep 9 22:34:19 2016 +0200
Add system-dejavu.patch and replace 10-fontconfig.patch.
---
debian/patches/series | 1 +
debian/patches/system-dejavu.patch | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9a309fb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+system-dejavu.patch
diff --git a/debian/patches/system-dejavu.patch b/debian/patches/system-dejavu.patch
new file mode 100644
index 0000000..77c4149
--- /dev/null
+++ b/debian/patches/system-dejavu.patch
@@ -0,0 +1,23 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 9 Sep 2016 22:33:28 +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 1913e21..4c16e10 100644
+--- a/src/graph.cpp
++++ b/src/graph.cpp
+@@ -142,7 +142,7 @@ int qpixel3(SDL_Surface *surf, int x, int y) {
+
+ void loadfont(int siz) {
+ if(!font[siz]) {
+- font[siz] = TTF_OpenFont("DejaVuSans-Bold.ttf", siz);
++ font[siz] = TTF_OpenFont("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", siz);
+ // Destination set by ./configure (in the GitHub repository)
+ #ifdef FONTDESTDIR
+ if (font[siz] == NULL) {
--
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