[reportlab-users] [Bitbucket] Issue #22: add '~/.fonts' (for user fonts on Ubuntu) to TTFSearchPath (rptlab/reportlab)

Robin Becker robin at reportlab.com
Mon Feb 24 05:43:32 EST 2014

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

I'm not an expert at all the places where font paths can be specified;
presumably there might be FONTPATH environment variables as well.
Robin Becker

More information about the reportlab-users mailing list