On Thursday 08 October 2009 04:03:35 Chris Mohler wrote:
> It might make a good sanity
> check in fonty - weeding out files that magic can't identify would
> likely reduce the number of crashes in ImageFont.
From what I can tell, it's not the type of font that crashes PIL, but some
malformed internals of those files that does. It's especially fragile around
the family property.
I had a look at your script (nice) as well as the python-magic module but I
can't see how it would enhance Fonty. Nice to know about though.
(If I am missing a point, please shout at me!)
The latest wrinkle in PIL is that fetching the family name does not encode
into a string properly - I get mojibake from font family - this means I can't
relay that family name out to gucharmap or display it Fonty properly.
Anyway, thanks for testing the SVN.
Cheers,
\d
--
home: http://otherwise.relics.co.za/
2D vector animation : https://savannah.nongnu.org/projects/things/
Font manager : https://savannah.nongnu.org/projects/fontypython/