[reportlab-users] Verdana and TTF error

Ian Sparks reportlab-users@reportlab.com
Tue, 4 May 2004 12:20:46 -0400


Robin Becker wrote:
>>
This problem is caused by a bad attempt at font aliases. I vbelieve that =
has now=20
been removed and we plan to do something better.
<<

Ulrich, I had to work around this "font alias" problem in my own code. =
It's annoying but I simply did :

pdfmetrics.registerFont(TTFont('XVerdana', 'VERDANA.TTF'))

then used the name XVerdana instead of Verdana in my code. This doesn't =
have to be painful if you define a constant and use that throughout.

FONT_NAME =3D "XVerdana"



-----Original Message-----
From: Robin Becker [mailto:robin@reportlab.com]
Sent: Tuesday, May 04, 2004 12:06 PM
To: reportlab-users@reportlab.com
Subject: Re: [reportlab-users] Verdana and TTF error


Ulrich Wisser wrote:

> Hi,
>=20
> as was suggested earlier in the list I installed the VERDANA.TTF file =
on=20
> my Linux box. The file is found, but when I try to register the font=20
> like this
>=20
>     pdfmetrics.registerFont(TTFont('Verdana', 'VERDANA.TTF'))
>=20
> I get an error message (please find it below).
>=20
> What is wrong with the font?
>=20
>=20
> Thanks from sunny Stockholm
>=20
> Ulrich
>=20
>=20
.....
>=20
>=20

This problem is caused by a bad attempt at font aliases. I vbelieve that =
has now=20
been removed and we plan to do something better.
--=20
Robin Becker
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users