[Image-SIG] _imagingft for OSX
leknarf at pacbell.net
Fri Nov 9 17:14:01 CET 2007
Got it. Thanks!
On Nov 8, 2007, at 1:31 PM, Fredrik Lundh wrote:
> Scott Frankel wrote:
>> Finally got PIL to build and install without error.
>> Stuck now on using the ImageFont module. Where do I get _imagingft?
>> How is it built and installed?
> if the setup.py script is able to find the freetype2 library, it's
> by default.
> the following excerpt from setup.py might be somewhat helpful:
> elif sys.platform == "darwin":
> # attempt to make sure we pick freetype2 over other
> add_directory(include_dirs, "/sw/include/freetype2")
> add_directory(include_dirs, "/sw/lib/freetype2/include")
> # fink installation directories
> add_directory(library_dirs, "/sw/lib")
> add_directory(include_dirs, "/sw/include")
> # darwin ports installation directories
> add_directory(library_dirs, "/opt/local/lib")
> add_directory(include_dirs, "/opt/local/include")
> if you get stuck, maybe you could just use a prebuilt version?
> this thread may also be somewhat helpful:
> ps. if someone has more Mac OS X boxes than they have use for, let me
> know ;-)
> Image-SIG maillist - Image-SIG at python.org
More information about the Image-SIG