tag 298964 patch
thanks

I removed the non-free font from the .orig.tar.gz, then I made the
attached patch to fix this problem. It works fine in my
games^H^H^H^H^Htests.

Micah
diff -ruN /tmp/atris_orig/atris-1.0.7/atris.c /tmp/atris-1.0.7/atris.c
--- /tmp/atris_orig/atris-1.0.7/atris.c 2005-01-20 16:18:19.000000000 -0600
+++ /tmp/atris-1.0.7/atris.c    2005-03-12 16:59:04.386661160 -0600
@@ -976,11 +976,11 @@
        Debug("Changing directory to [%s]\n",ATRIS_LIBDIR);
 
     /* Set up the font */
-    sfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",18);
-     font = TTF_OpenFont("graphics/NewMediumNormal.ttf",24);
-    lfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",36);
-    hfont = TTF_OpenFont("graphics/NewMediumNormal.ttf",96);
-    if ( font == NULL ) PANIC("Couldn't open [graphics/NewMediumNormal.ttf].", 
ATRIS_LIBDIR); 
+    sfont = 
TTF_OpenFont("/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf",18);
+     font = 
TTF_OpenFont("/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf",24);
+    lfont = 
TTF_OpenFont("/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf",36);
+    hfont = 
TTF_OpenFont("/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf",96);
+    if ( font == NULL ) PANIC("Couldn't open 
[/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf].", ATRIS_LIBDIR); 
     TTF_SetFontStyle(font, renderstyle);
     TTF_SetFontStyle(sfont, renderstyle);
     /* Initialize scores */
diff -ruN /tmp/atris_orig/atris-1.0.7/debian/changelog 
/tmp/atris-1.0.7/debian/changelog
--- /tmp/atris_orig/atris-1.0.7/debian/changelog        2005-03-12 
17:06:42.807970528 -0600
+++ /tmp/atris-1.0.7/debian/changelog   2005-03-12 17:06:24.996678256 -0600
@@ -1,3 +1,12 @@
+atris (1.0.7-2.1) unstable; urgency=low
+
+  * Non-maintainer upload
+    Changed atris.c to use Vera.ttf from ttf-bitstream-vera,
+    modified debian/control to depend on this font, and removed
+    the non-free font NewMediumNormal.ttf (Closes: #298964)
+
+ -- Micah Anderson <[EMAIL PROTECTED]>  Sat, 12 Mar 2005 17:06:11 -0600
+
 atris (1.0.7-1) unstable; urgency=low
 
   * New upstream version.
diff -ruN /tmp/atris_orig/atris-1.0.7/debian/control 
/tmp/atris-1.0.7/debian/control
--- /tmp/atris_orig/atris-1.0.7/debian/control  2005-03-12 17:06:42.807970528 
-0600
+++ /tmp/atris-1.0.7/debian/control     2005-03-12 17:01:16.027648688 -0600
@@ -7,7 +7,7 @@
 
 Package: atris
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ttf-bitstream-vera
 Description: tetris-like game with a twist for Unix
  Alizarin Tetris includes multi-player support, user-extensible color, shape 
  and sound styles, can use TCP/IP networking and features a few different AI 
Binary files /tmp/atris_orig/atris-1.0.7/graphics/NewMediumNormal.ttf and 
/tmp/atris-1.0.7/graphics/NewMediumNormal.ttf differ

Reply via email to