childsplay/childsplay-0.90.2-locale_it_font.patch

20 lines
908 B
Diff

--- childsplay-0.90.2/utils.py 2008-01-17 15:38:56.000000000 +0100
+++ utils.py 2008-09-30 10:18:24.000000000 +0200
@@ -169,6 +169,16 @@
else:
print "No suitable fonset found for your locale"
rtl_ttf = None
+ elif loc=='it':
+ if os.path.exists('/usr/lib/site-python/pygame/freesansbold.ttf'):
+ rtl_ttf = '/usr/lib/site-python/pygame/freesansbold.ttf'
+ elif os.path.exists('/usr/lib/site-python/pygame/freesansbold.ttf'):
+ rtl_ttf = '/usr/lib/site-python/pygame/freesansbold.ttf'
+ elif os.path.exists(os.path.join(DATADIR,'freesansbold.ttf')):
+ rtl_ttf = os.path.join(DATADIR,'freesansbold.ttf')
+ else:
+ print "No suitable fonset found for your locale"
+ rtl_ttf = None
if UT_DEBUG: print "using fontset %s \nfor RTL locale" % rtl_ttf
return (rtl,rtl_ttf,rtl_seq)