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

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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?

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.