[reportlab-users] ZapfDingbats icon problem
Dave S
report at pusspaws.net
Fri Nov 24 02:49:03 EST 2006
On Friday 24 November 2006 01:10, François Wautier wrote:
> Hi,
>
> > from reportlab.lib.units import inch
> > from reportlab.lib.pagesizes import A4
> > import datetime, ConfigParser, os
> > from reportlab.pdfgen import canvas
> >
> > from reportlab.pdfgen.canvas import Canvas
> > c = Canvas('temp.pdf')
> > c.setFont("ZapfDingbats", 20)
> > y = 700
> > for line in [u'\u0034 test']:
> > print line
> > uniLine = line
> > #uniLine = unicode(line, 'latin-1')
> > c.drawString(100, y, uniLine.strip())
> >
> > c.save()
>
> I would wager that your problem has more to do with your previewer/print
> system than with reportlabs... I tried your test program under Linux and
> it's A-OK.
>
> Check if you can preview your page in an environment where you have seen
> ZapDingbats.
>
> Just to make sure, I attach the PDF that was produced on my system.... If
> you still see little black boxes... It's definetely you previewer/print
> system
>
> Cheers,
> François
You are right ! In Adobe reader on XP and Linux its a no show, on Konqueror it
shows AOK
I thought (reading the reportlab docs) that ZapfDingbats was a guaranteed
(built in) font ? I guess not !
Thanks for your help
Dave
PS I will look into loading it in separately
More information about the reportlab-users
mailing list