[reportlab-users] [Bitbucket] Issue #22: add '~/.fonts' (for user fonts on Ubuntu) to TTFSearchPath (rptlab/reportlab)
Roberto Alsina
ralsina at netmanagers.com.ar
Mon Feb 24 05:47:55 EST 2014
On 24/02/14 07:43, Robin Becker wrote:
> On 22/02/2014 06:17, Ian Wood wrote:
>> --- you can reply above this line ---
>>
>> New issue 22: add '~/.fonts' (for user fonts on Ubuntu) to TTFSearchPath
>> https://bitbucket.org/rptlab/reportlab/issue/22/add-fonts-for-user-fonts-on-ubuntu-to
>>
>>
>> Ian Wood:
>>
>> Probably could be in search paths for other types of font also..
> ...
> I am trying to avoid answering all these issues on bitbucket so I'm
> copying reportlab-users to give others a chance to weigh in.
>
> I have no particular feeling about this particular entry. Since python
> doesn't recognize the ~ as special just using that character would not
> work.
>
> The question sould probably be re-phrased as can you do add
> os.path.join(os.environ.get('HOME','/dev/null'),'.fonts') to one or
> more search paths?
os.path.expanduser('~/.fonts')
>
> I'm not an expert at all the places where font paths can be specified;
> presumably there might be FONTPATH environment variables as well.
More information about the reportlab-users
mailing list