Codebase list pyracerz / 9adfdc8
Drop non-free fonts and use a cartoony free font from Debian Closes: #1028082 Reiner Herrmann 1 year, 3 months ago
6 changed file(s) with 29 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
2121 libsdl-ttf2.0-0,
2222 python3,
2323 python3-pygame,
24 fonts-radisnoir,
2425 ${misc:Depends},
2526 ${python3:Depends}
2627 Description: multiplayer top view 2D racing game
00 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
11 Upstream-Name: pyRacerz
22 Source: http://pyracerz.sourceforge.net
3 Files-Excluded: fonts
34
45 Files: *
56 Copyright: 2005-2006, Jujucece <jujucece@gmail.com>
67 License: GPL-2+
7
8 Files: fonts/*
9 Copyright: 2001, Font-a-licious fonts
10 License: Alba-font
118
129 Files: debian/*
1310 Copyright: 2005, Jose Carlos Medeiros <debian@psabs.com.br>
1916 License: GPL-2+
2017 On Debian systems, the complete text of the GNU General
2118 Public License 2 can be found in `/usr/share/common-licenses/GPL-2'.
22
23 License: Alba-font
24 These fonts are free to anyone who wants to use them.
25 All I ask is that (if its possible) you e-mail me
26 :: yahoo@fontalicious.com :: and tell me where I can see it.
27 If you use this font for print use, I would love a copy of whatever it is
28 used for.
29 .
30 If you are going to redistribute my font, please include this Read Me text
31 file and a link to my page. That's it! Actually, you don't have to link
32 to my page, but I sure would like it!
33 .
34 Thanks for reading this. Have a super day!
35 All Fonts Copyright © 2001 Font-a-licious Fonts
36 Please refer to the "Usage Info" section of the website for any other
37 information.
38 :::please visit http://www.fontalicious.com everyday!!
11 debian/pyracerz.xpm usr/share/pixmaps
22 debian/pyracerz.conf usr/share/games/pyracerz
33 credits usr/share/games/pyracerz
4 fonts usr/share/games/pyracerz
54 modules usr/share/games/pyracerz
65 replays usr/share/games/pyracerz
76 sounds usr/share/games/pyracerz
87 sprites usr/share/games/pyracerz
98 tracks usr/share/games/pyracerz
10
0 Author: Reiner Herrmann <reiner@reiner-h.de>
1 Description: Use a free font replacement
2 Bug-Debian: https://bugs.debian.org/1028082
3
4 --- a/modules/misc.py
5 +++ b/modules/misc.py
6 @@ -52,11 +52,12 @@
7 global background
8
9 try:
10 - popUpFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(16*zoom))
11 - titleFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(52*zoom))
12 - itemFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(34*zoom))
13 - smallItemFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(30*zoom))
14 - bigFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(66*zoom))
15 + fontpath = "/usr/share/fonts/opentype/radisnoir/RadisSans-medium.otf"
16 + popUpFont = pygame.font.Font(fontpath, int(16*zoom))
17 + titleFont = pygame.font.Font(fontpath, int(52*zoom))
18 + itemFont = pygame.font.Font(fontpath, int(34*zoom))
19 + smallItemFont = pygame.font.Font(fontpath, int(30*zoom))
20 + bigFont = pygame.font.Font(fontpath, int(66*zoom))
21 except Exception as e:
22 print("Cannot initialize fonts:")
23 print(e)
1414 global background
1515
1616 try:
17 - popUpFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(16*zoom))
17 - popUpFont = pygame.font.Font(os.path.join("fonts", "arcade_pizzadude", "ARCADE.TTF"), int(24*zoom))
1818 - titleFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(52*zoom))
1919 - itemFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(34*zoom))
2020 - smallItemFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(30*zoom))
118118 except Exception:
119119 return 0
120120
121 @@ -244,20 +246,20 @@ def setUnlockLevel(lck):
121 @@ -244,19 +246,19 @@ def setUnlockLevel(lck):
122122
123123 confFile=ConfigParser.SafeConfigParser()
124124 try:
142142 confFile.set("unlockLevel", "key", str(lck) + " " + h.hexdigest())
143143 confFile.write(fwrite)
144144
145 -
146 +
66 game.patch
77 fix-100-cpu.patch
88 python3.patch
9 font-replacement.patch