Drop non-free fonts and use a cartoony free font from Debian
Closes: #1028082
Reiner Herrmann
1 year, 3 months ago
21 | 21 | libsdl-ttf2.0-0, |
22 | 22 | python3, |
23 | 23 | python3-pygame, |
24 | fonts-radisnoir, | |
24 | 25 | ${misc:Depends}, |
25 | 26 | ${python3:Depends} |
26 | 27 | Description: multiplayer top view 2D racing game |
0 | 0 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |
1 | 1 | Upstream-Name: pyRacerz |
2 | 2 | Source: http://pyracerz.sourceforge.net |
3 | Files-Excluded: fonts | |
3 | 4 | |
4 | 5 | Files: * |
5 | 6 | Copyright: 2005-2006, Jujucece <jujucece@gmail.com> |
6 | 7 | License: GPL-2+ |
7 | ||
8 | Files: fonts/* | |
9 | Copyright: 2001, Font-a-licious fonts | |
10 | License: Alba-font | |
11 | 8 | |
12 | 9 | Files: debian/* |
13 | 10 | Copyright: 2005, Jose Carlos Medeiros <debian@psabs.com.br> |
19 | 16 | License: GPL-2+ |
20 | 17 | On Debian systems, the complete text of the GNU General |
21 | 18 | 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!! |
1 | 1 | debian/pyracerz.xpm usr/share/pixmaps |
2 | 2 | debian/pyracerz.conf usr/share/games/pyracerz |
3 | 3 | credits usr/share/games/pyracerz |
4 | fonts usr/share/games/pyracerz | |
5 | 4 | modules usr/share/games/pyracerz |
6 | 5 | replays usr/share/games/pyracerz |
7 | 6 | sounds usr/share/games/pyracerz |
8 | 7 | sprites usr/share/games/pyracerz |
9 | 8 | 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) |
14 | 14 | global background |
15 | 15 | |
16 | 16 | 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)) | |
18 | 18 | - titleFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(52*zoom)) |
19 | 19 | - itemFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(34*zoom)) |
20 | 20 | - smallItemFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(30*zoom)) |
118 | 118 | except Exception: |
119 | 119 | return 0 |
120 | 120 | |
121 | @@ -244,20 +246,20 @@ def setUnlockLevel(lck): | |
121 | @@ -244,19 +246,19 @@ def setUnlockLevel(lck): | |
122 | 122 | |
123 | 123 | confFile=ConfigParser.SafeConfigParser() |
124 | 124 | try: |
142 | 142 | confFile.set("unlockLevel", "key", str(lck) + " " + h.hexdigest()) |
143 | 143 | confFile.write(fwrite) |
144 | 144 | |
145 | - | |
146 | + |