[reportlab-users] Using Unicode fonts
andy at reportlab.com
Wed Oct 4 03:29:35 EDT 2006
Dinu Gherman wrote:
> I'm trying to see real Unicode characters like \u22d0, but cannot
> find any hint in the User Guide of how to do that. I downloaded
> a free Unicode TrueType font named "Titus Cyberbit" from this URL:
> but still fail to get any "exotic" characters like using "\u22d0"
> or "<unichar code="0x22d0"/>" in Platypus paragraphs, even after re-
> gistering the TTF with reportlab.pdfbase.pdfmetrics.registerFont()
> But Acrobat Reader says the font has been added to the PDF...
Have you tried constructing the paragraph with a Unicode string e.g.
p = Para(u"My text with non-latin characters", style)
More information about the reportlab-users