[reportlab-users] The Font Problem fix?

rmorin at bcgsc.ca rmorin at bcgsc.ca
Mon Sep 18 16:50:10 EDT 2006


All the packages are there.  I have not tested PIL because I can't get
past this font problem.

> Have you installed PIL?
>
> rmorin at bcgsc.ca wrote:
>> Hi Robin.
>> I tried the fix you suggested.  Here is the error I get running
>> renderPM.py directly (after putting the Windows fonts in the
>> reportlab/fonts directory):
>>
>> AttributeError: 'module' object has no attribute 'pil2pict'
>>
>> Using the code I was originally having problems with, it dies right at
>> the
>> same place but with a different error message this time:
>>
>> _renderPM.Error: can't make font
>>
>> Is there anything else anyone can think of for me to try at this point?
>>
>> Thanks.
>>
>> Ryan
>>
>>
>>>rmorin at bcgsc.ca wrote:
>>>
>>>>I am not running linux but one of the modules required to set the font
>>>>is
>>>>a pre-compiled binary for linux that potentially won't run on sun OS.
>>>> I
>>>>wonder if the problem is that simple.  If so, is it even fixable?
>>>>
>>>
>>>......
>>>There are two solutions in the help you used, but I think you should try
>>>to use
>>>the windows version of the files. Just put them in the reportlab/fonts
>>> dir
>>>and
>>>then try to run renderPM.py as a script
>>>
>>>ie
>>>
>>>cd reportlab/graphic
>>>python renderPM.py
>>>
>>>if that works it means the fonts are being seen
>>>--
>>>Robin Becker
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>



More information about the reportlab-users mailing list