[reportlab-users] Re:fonts
Spyce
reportlab-users@reportlab.com
Mon, 11 Aug 2003 15:48:13 +0400
Hello Proboscis,
Where does verdana.ttf reside?
Maybe add full path to font file name?
Monday, August 11, 2003, 3:32:46 PM, you wrote:
PA> Dear all,
PA> I am trying to set the font on my pdf to Verdana. I have the
PA> VERDANA.TTF font saved in fonts
PA> and I tried to use the folowing code:
PA> import reportlab.rl_config
PA> reportlab.rl_config.warnOnMissingFontGlyphs = 0
PA> from reportlab.pdfbase import pdfmetrics
PA> from reportlab.pdfbase.ttfonts import TTFont
PA> pdfmetrics.registerFont(TTFont('Verdana', 'VERDANA.ttf'))
PA> However I am getting 'Cannot open file VERDANA.ttf'
PA> Any suggestions, code, help?
PA> Thanks
--
Best regards,
Spyce mailto:spyce@symbolist.ru