Re: Fonty magic

0 views
Skip to first unread message

Donn

unread,
Oct 12, 2009, 3:05:00 AM10/12/09
to Chris Mohler, fonty...@googlegroups.com
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/

Chris Mohler

unread,
Oct 12, 2009, 12:30:34 PM10/12/09
to fonty...@googlegroups.com
On Mon, Oct 12, 2009 at 2:05 AM, Donn <donn....@gmail.com> wrote:
> Anyway, thanks for testing the SVN.

No problem.

Chris

Reply all
Reply to author
Forward
0 new messages