tags 461275 +patch
kthxbye

Hi,
Attached you find a patch which switches to dejavu.

Regards
Evgeni
diff -Nrwu bouncy-0.6.20071104.orig/debian/changelog bouncy-0.6.20071104/debian/changelog
--- bouncy-0.6.20071104.orig/debian/changelog	2008-02-07 23:37:54.000000000 +0100
+++ bouncy-0.6.20071104/debian/changelog	2008-02-07 23:35:57.000000000 +0100
@@ -1,3 +1,11 @@
+bouncy (0.6.20071104-2) unstable; urgency=low
+
+  [ Evgeni Golov ]
+  * Switch to DejaVu fonts (Closes: 461275)
+    adding a dependency on ttf-dejavu-core instead of ttf-bitstream-vera
+
+ -- Miriam Ruiz <[EMAIL PROTECTED]>  Thu, 07 Feb 2008 23:34:44 +0100
+
 bouncy (0.6.20071104-1) unstable; urgency=low
 
   [ Miriam Ruiz ]
diff -Nrwu bouncy-0.6.20071104.orig/debian/control bouncy-0.6.20071104/debian/control
--- bouncy-0.6.20071104.orig/debian/control	2008-02-07 23:37:54.000000000 +0100
+++ bouncy-0.6.20071104/debian/control	2008-02-07 23:34:37.000000000 +0100
@@ -11,7 +11,7 @@
 
 Package: bouncy
 Architecture: all
-Depends: ttf-bitstream-vera, python, python-pygame, python-opengl, ${misc:Depends}
+Depends: ttf-dejavu-core, python, python-pygame, python-opengl, ${misc:Depends}
 Description: eat the yummy veggies in the garden - game for small kids
  You play Bouncy the Hungry Rabbit. You're in a garden with yummy veggies and
  a farmer who's not keen on you eating them. You can hide (and move around)
diff -Nrwu bouncy-0.6.20071104.orig/debian/patches/dejavu.patch bouncy-0.6.20071104/debian/patches/dejavu.patch
--- bouncy-0.6.20071104.orig/debian/patches/dejavu.patch	1970-01-01 01:00:00.000000000 +0100
+++ bouncy-0.6.20071104/debian/patches/dejavu.patch	2008-02-07 23:34:07.000000000 +0100
@@ -0,0 +1,68 @@
+diff -Nrwu bouncy-0.6.20071104.orig/fonts.py bouncy-0.6.20071104/fonts.py
+--- bouncy-0.6.20071104.orig/fonts.py	2007-09-04 12:21:34.000000000 +0200
++++ bouncy-0.6.20071104/fonts.py	2008-02-07 23:25:52.000000000 +0100
+@@ -2,12 +2,12 @@
+ 
+ # load up fonts
+ fonts = pyglyph.font.LocalFontFactory('data')
+-sans20 = fonts.get_font(family='bitstream vera sans',
++sans20 = fonts.get_font(family='dejavu sans',
+     size=20, bold=False, italic=False)
+ 
+-sans40 = fonts.get_font(family='bitstream vera sans',
++sans40 = fonts.get_font(family='dejavu sans',
+     size=40, bold=False, italic=False)
+ 
+-mono20 = fonts.get_font(family='bitstream vera sans mono',
++mono20 = fonts.get_font(family='dejavu mono',
+     size=20, bold=False, italic=False)
+ 
+diff -Nrwu bouncy-0.6.20071104.orig/game.py bouncy-0.6.20071104/game.py
+--- bouncy-0.6.20071104.orig/game.py	2007-09-04 12:21:34.000000000 +0200
++++ bouncy-0.6.20071104/game.py	2008-02-07 23:25:25.000000000 +0100
+@@ -44,7 +44,7 @@
+     def menu(self):
+ 
+         instructions = pyglyph.layout_html('''
+-            <font face="bitstream vera sans" size="40">
++            <font face="dejavu sans" size="40">
+                 (I)nstructions <br>
+                 (E)asy <br>
+                 (N)ormal <br>
+@@ -132,7 +132,7 @@
+ 
+     def instructions(self):
+         instructions = pyglyph.layout_html('''
+-            <font face="bitstream vera sans" size="20">
++            <font face="dejavu sans" size="20">
+ <b>Bouncy the Rabbit by Richard Jones</b>
+ <br>
+ Written for the 3rd PyWeek Challenge: http://www.pyweek.org/
+diff -Nrwu bouncy-0.6.20071104.orig/leveledit.py bouncy-0.6.20071104/leveledit.py
+--- bouncy-0.6.20071104.orig/leveledit.py	2007-09-04 12:21:34.000000000 +0200
++++ bouncy-0.6.20071104/leveledit.py	2008-02-07 23:26:12.000000000 +0100
+@@ -45,10 +45,10 @@
+ 
+         # load up fonts
+         fonts = pyglyph.font.LocalFontFactory('data')
+-        self.sans20 = fonts.get_font(family='bitstream vera sans',
++        self.sans20 = fonts.get_font(family='dejavu sans',
+             size=20, bold=False, italic=False)
+ 
+-        self.sans40 = fonts.get_font(family='bitstream vera sans',
++        self.sans40 = fonts.get_font(family='dejavu sans',
+             size=40, bold=False, italic=False)
+ 
+         # button labels and callback funcs
+diff -Nrwu bouncy-0.6.20071104.orig/pyglyph/html.py bouncy-0.6.20071104/pyglyph/html.py
+--- bouncy-0.6.20071104.orig/pyglyph/html.py	2007-09-04 12:21:34.000000000 +0200
++++ bouncy-0.6.20071104/pyglyph/html.py	2008-02-07 23:26:42.000000000 +0100
+@@ -131,7 +131,7 @@
+             self._attrs[Attribute.Bold] = False
+             self._attrs[Attribute.Italic] = False
+             self._attrs[Attribute.FontSize] = 12
+-            self._attrs[Attribute.FontName] = 'bitstream vera serif'
++            self._attrs[Attribute.FontName] = 'dejavu serif'
+             self._attrs[Attribute.Color] = (0, 0, 0, 1)
+     
+     def set_attribute(self, attribute, value):
diff -Nrwu bouncy-0.6.20071104.orig/debian/patches/fonts_path.patch bouncy-0.6.20071104/debian/patches/fonts_path.patch
--- bouncy-0.6.20071104.orig/debian/patches/fonts_path.patch	2008-02-07 23:37:54.000000000 +0100
+++ bouncy-0.6.20071104/debian/patches/fonts_path.patch	2008-02-07 23:33:56.000000000 +0100
@@ -6,7 +6,7 @@
  
  # load up fonts
 -fonts = pyglyph.font.LocalFontFactory('data')
-+fonts = pyglyph.font.LocalFontFactory('/usr/share/fonts/truetype/ttf-bitstream-vera')
- sans20 = fonts.get_font(family='bitstream vera sans',
++fonts = pyglyph.font.LocalFontFactory('/usr/share/fonts/truetype/ttf-dejavu')
+ sans20 = fonts.get_font(family='dejavu sans',
      size=20, bold=False, italic=False)
  
diff -Nrwu bouncy-0.6.20071104.orig/debian/patches/series bouncy-0.6.20071104/debian/patches/series
--- bouncy-0.6.20071104.orig/debian/patches/series	2008-02-07 23:37:54.000000000 +0100
+++ bouncy-0.6.20071104/debian/patches/series	2008-02-07 23:34:19.000000000 +0100
@@ -1,2 +1,3 @@
 env.patch
+dejavu.patch
 fonts_path.patch

Attachment: pgpSzKGMD7wIF.pgp
Description: PGP signature

Reply via email to