hi,
i found quite usefoul, for looking for TTFonts on my debian system,
to add this line 45 in rl_config: '/usr/share/fonts/truetype/',
so my rlconfig regarding TTF is now:

# places to look for TT Font information
TTFSearchPath = (
                'c:/winnt/fonts',
                'c:/windows/fonts',
                '/usr/lib/X11/fonts/TrueType/',
                '/usr/share/fonts/truetype/',   #added
                '%(REPORTLAB_DIR)s/fonts',      #special
                '%(REPORTLAB_DIR)s/../fonts',   #special
                '%(REPORTLAB_DIR)s/../../fonts',#special
                '%(HOME)s/fonts',               #special
                )

Of course when i register TTFont i use something like this:

pdfmetrics.registerFont(TTFont('Fsans','freefont/FreeSans.ttf'))
so i add the directory relative to /usr/share/fonts/truetype/

Hope it can help someone


Regards
Samuele


--
4% fats, 2% cerebral activities


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to