[reportlab-users] TTF Problem
reportlab-user at agon.com
Fri Feb 24 12:16:21 EST 2006
> -----Original Message-----
> From: reportlab-users-bounces at reportlab.com
> [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of
> Robin Becker
> Sent: 24 February 2006 17:05
> To: Support list for users of Reportlab software
> Subject: Re: [reportlab-users] TTF Problem
> 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:
> > pdfmetrics.registerFont(TTFont('ENEMY_Land',
> > 'c:/windows/fonts/app6a01.ttf'))
> > c = canvas.Canvas("test.pdf")
> > c.setFont('ENEMY_Land', 16)
> > xyz012
> > 3456789")
> > c.showPage()
> > c.save()
> > 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
> > 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.
> Robin Becker
> reportlab-users mailing list
> reportlab-users at reportlab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 71904 bytes
Desc: not available
Url : http://two.pairlist.net/pipermail/reportlab-users/attachments/20060224/42602899/APP6A01-0001.obj
More information about the reportlab-users