[reportlab-users] Bulleted Text not displaying

Roberto Alsina ralsina at netmanagers.com.ar
Mon Oct 13 15:32:18 EDT 2008


On Monday 13 October 2008 16:30:55 Andy Robinson wrote:

> 2008/10/13 Peter Mattingly <pmattingly at mail.csuchico.edu>

>

> > For fans of the XML approach this works for that application:

> >

> > text = "<para leftIndent=32><bullet

> > bulletIndent=15>\xe2\x80\xa2</bullet>This is bulleted text.</para>"

> >

> > para = Paragraph(text, style=body_style)

> > story.append(para)

> >

> > I got the bullet character from the documentation; Who knows where they

> > got that, I certainly can't find any reference that that code / format

> > when I google it.

>

> We probably got it from trial and error, looking through all glyphs in

> Helvetica and Times Roman for something vaguely bullet-like. But it

> was 8 years ago so I can't remember.

> If you find any "official" bullet character codes in Unicode which

> work better, please let us know...


U+2022 is supposed to be the unicode bullet. It's not on any non-unicode ont,
of course, so it will be hit and miss with the "default" fonts.

There is also U+2023 (arrow bullet) and U+2043 (dash bullet).

--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it. --Brian W. Kernighan


More information about the reportlab-users mailing list