URL:
<http://gna.org/bugs/?9290>
Summary: pudding/sysfont.py should (also) use fontconfig
Project: Soya 3D
Submitted by: cypheon
Submitted on: Donnerstag 07.06.2007 um 22:06
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When I tried out the soya examples pudding-*.py, soya always crashed in
pudding/sysfont.py because it could not find any fonts. Version 0.13.1 died
of "Can't open file ''", current SVN threw a
soya.pudding.sysfont.FontNotFoundError.
I discoverd that on my system (Debian testing/unstable), I have no files
named fonts.{dir,scale,cache-1} containing any TrueType fonts, even
reinstallation of ttf-freefont didn't solve the problem.
I found a new and a better working version of sysfont.py in PyGame SVN. So I
made a patch which replaces the current initsysfonts_unix() by a function
that uses fontconfig to find available fonts in unix. I created two patches
(they both work for me):
- The first one "01_sysfont-use-fontconfig.patch" extends the script by
fontconfig functionality.
- The second one "01_sysfont-use-only-fontconfig.patch" replaces the whole
unix part by fontconfig stuff.
It would be great, if you included one of those patches in soya, because it
is a great 3D-engine and that little problem can be very frustrating when
trying out the first GUI examples.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Donnerstag 07.06.2007 um 22:06 Name: 01_sysfont-use-fontconfig.patch
Size: 1kB By: cypheon
Add fontconfig functionality to pudding/sysfont.py (need just one patch)
<http://gna.org/bugs/download.php?file_id=2418>
-------------------------------------------------------
Date: Donnerstag 07.06.2007 um 22:06 Name:
01_sysfont-use-only-fontconfig.patch Size: 3kB By: cypheon
Add fontconfig functionality to pudding/sysfont.py (need just one patch)
<http://gna.org/bugs/download.php?file_id=2419>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?9290>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user