All pastes #909859 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-19 15:57 UTC
rendered paste body
richih@adamantium ~/work/MISC/debian/beatharvester % l old
total 24
-rw-r--r-- 1 richih richih 13356 2008-02-19 16:49 gl_render_util.py
-rw-r--r-- 1 richih richih  7498 2008-02-19 16:49 render_util.py
richih@adamantium ~/work/MISC/debian/beatharvester % l new
total 24
-rw-r--r-- 1 richih richih 13400 2008-02-19 16:39 gl_render_util.py
-rw-r--r-- 1 richih richih  7542 2008-02-19 16:39 render_util.py
richih@adamantium ~/work/MISC/debian/beatharvester % diff -ru old/ new/
diff -ru old/gl_render_util.py new/gl_render_util.py
--- old/gl_render_util.py       2008-02-19 16:49:36.943593775 +0100
+++ new/gl_render_util.py       2008-02-19 16:39:10.151593480 +0100
@@ -226,7 +226,7 @@
             font = GL_render_util.cached_fonts[size]
         else:
             font = GL_render_util.cached_fonts[size] = pygame.font.Font(data.filepath(\
-            os.path.join("misc", "Vera.ttf")), size)
+            os.path.join("/usr/share/fonts/truetype/ttf-dejavu", "DejaVuSansMono.ttf")), size)

         color = (color[0], color[1], color[2], 255);
         bgcolor = (bgcolor[0], bgcolor[1], bgcolor[2], 255);
@@ -373,4 +373,4 @@
         glVertex3f(-1.0, 1.0, 0.0)
         glEnd()

-    return (GL_render_util.fade_state == fade_target)
\ No newline at end of file
+    return (GL_render_util.fade_state == fade_target)
diff -ru old/render_util.py new/render_util.py
--- old/render_util.py  2008-02-19 16:49:41.016371053 +0100
+++ new/render_util.py  2008-02-19 16:39:43.452594225 +0100
@@ -79,7 +79,7 @@
             font = Render_util.cached_fonts[size]
         else:
             font = Render_util.cached_fonts[size] = pygame.font.Font(data.filepath(\
-            os.path.join("misc", "Vera.ttf")), size)
+            os.path.join("/usr/share/fonts/truetype/ttf-dejavu", "DejaVuSansMono.ttf")), size)

         text_image_bg = font.render(string, True, bgcolor)
         text_image_fg = font.render(string, True, color)
@@ -193,4 +193,4 @@
     if Render_util.fade_state > FADE_STATE_NONE:
         Render_util.blackscreen.set_alpha(Render_util.fade_state)
         screen.blit(Render_util.blackscreen, screen.get_rect())
-    return (Render_util.fade_state == fade_target)
\ No newline at end of file
+    return (Render_util.fade_state == fade_target)
richih@adamantium ~/work/MISC/debian/beatharvester %