[Pythonmac-SIG] Using Mac system fonts with matplotlib?

2008-05-19 Thread Nicholas Matsakis
I'm looking for some guidance on using system-installed truetype fonts with matplotlib. I asked this question on the matplotlib mailing list, but it didn't garner any responses. Here's what I've found so far, using the PDF backend in matplotlib 0.91.2 on 10.5/leopard's native python 2.5 (inst

Re: [Pythonmac-SIG] Spotlight Importing without .py

2006-01-21 Thread Nicholas Matsakis
Henning Hraban Ramm wrote: > In this case, 'file' may be right. But I wouldn't trust it if you've to > handle a lot of file types. ... Mostly I could trust in extensions > and/or Mac type/creator codes. I certainly agree with this; applications that create files are in the best position to kn

Re: [Pythonmac-SIG] Spotlight Importing without .py

2006-01-21 Thread Nicholas Matsakis
On Sat, 21 Jan 2006, Jonathan Wight wrote: > I'm the author of Python Metadata Importer. There should already be a HFS > type code for Python source. I can add the type code to Python Metadata > Importer to wide its search. Getting the importer to work with Spotmeta is > AFAICT a non-starter -

[Pythonmac-SIG] Spotlight Importing without .py

2006-01-20 Thread Nicholas Matsakis
http://www.apple.com/downloads/macosx/spotlight/pythonmetadataimporter.html I really dig the Spotlight Metadata Importer for python, but it only works for files ending in ".py" which excludes various shell scripts I have written that have no filename extension. Anyone have a super elegant sol