[reportlab-users] degree sign in PDF for temperature Celsius

dimitri pater dimitri.pater at gmail.com
Mon Aug 6 10:40:25 EDT 2007


Hi Robin,
thanks, \xc2\xb0 works for me.
bye,
Dimitri


On 8/6/07, Robin Becker <robin at reportlab.com> wrote:

>

> dimitri pater wrote:

> > Hello,

> > I am having trouble displaying a degree sign (used for temperature

> Celsius)

> > in a PDF. It is displayed as a black square. Other 'special characters'

> like

> > e-acute and superscript 2 are displayed properly in the PDF. I use

> platypus.

> >

> > ideas anyone? Your help is appreciated.

> > thanks,

> > Dimitri

> .......

>

> which font are you using & how are you encoding the degree sign? When I

> try this

> in my simple way I seem to see a degree sign.

>

> from reportlab.pdfgen.canvas import Canvas

> c=Canvas('out.pdf')

> c.drawString(72,72,'39\xc2\xb0')

> c.save()

>

> of course that is using the default font which is Helvetica (I think).

> --

> Robin Becker

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>




--
---
You can't have everything. Where would you put it? -- Steven Wright
---
please visit www.serpia.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20070806/e08b8761/attachment.html>


More information about the reportlab-users mailing list