[reportlab-users] TTF Problem
robin at reportlab.com
Fri Feb 24 12:05:28 EST 2006
Ian Millington wrote:
> Unusually, I have a TTF problem that isn't related to Far-East fonts.
> I am trying to overlay standard military planning symbols onto a map, using
> the common (in military circles) MapSymb font package.
> When I do:
> c = canvas.Canvas("test.pdf")
> c.setFont('ENEMY_Land', 16)
> I get a set of 'no such character' boxes rather than the characters I need.
> The same code works fine for other TTF fonts. What surprises me is that
> there is no error, so I don't know if it's a silent font-parsing error, or
> something really stupid I'm missing.
> The fonts work in other applications. They are a dingbat fonts (i.e. symbols
> mapped to ASCII character codes). Nothing funky with unicode going on. I can
> zip and send one, if need be.
> I'd appreciate any help in solving this, I don't really want to have to
> manually draw these symbols in code.
... if you send me the font I'll take a look inside and see what's going on.
We're doing some work right now on the utf8 branch which may be relevant.
More information about the reportlab-users