severity 111342 grave
tag 111342 +patch 
thanks

here is the patch

I really think that this bug should be fixed before Etch is released;
so I will NMU this tomorrow

a.

-- 
Andrea Mennucc

"The EULA sounds like it was written by a team of lawyers who want to tell 
me what I can't do, and the GPL sounds like it was written by a human 
being who wants me to know what I can do."
Anonymous,    http://www.securityfocus.com/columnists/420
diff -ur xarchon-0.50/debian/changelog xarchon-0.50-nmu/debian/changelog
--- xarchon-0.50/debian/changelog	2006-12-31 18:02:35.000000000 +0100
+++ xarchon-0.50-nmu/debian/changelog	2006-12-31 18:02:00.000000000 +0100
@@ -1,3 +1,9 @@
+xarchon (0.50-10.1) unstable; urgency=low
+
+  * NMU: Bug fix: "Missing font prevents starting new game" (Closes: #111342).
+  
+ -- A Mennucc1 <[EMAIL PROTECTED]>  Sun, 31 Dec 2006 18:01:46 +0100
+
 xarchon (0.50-10) unstable; urgency=low
 
   * Use debian/tmp as a staging directory and use dh_install to move files
diff -ur xarchon-0.50/src/canvas.c xarchon-0.50-nmu/src/canvas.c
--- xarchon-0.50/src/canvas.c	2006-12-31 18:02:35.000000000 +0100
+++ xarchon-0.50-nmu/src/canvas.c	2006-12-31 18:00:40.000000000 +0100
@@ -289,8 +289,12 @@
 
    fs = XLoadQueryFont(display, name);
    if (fs == NULL) {
-      fprintf(stderr, "canvas_font_load():  cannot load font `%s'\n", name);
-      exit(EXIT_FAILURE);
+     fs = XLoadQueryFont(display, "-*-fixed-*-*-*-*-15-*-*-*-*-*-iso8859-1"); 
+     if (fs == NULL) {
+       fprintf(stderr, "canvas_font_load(): cannot load neither font `%s' , nor fallback: panic!\n",name);
+       exit(EXIT_FAILURE);
+     } else
+       fprintf(stderr, "canvas_font_load() warning: cannot load font `%s', using fallback.\n", name);
    }
    return fs;
 }

Reply via email to