[reportlab-users] Bug when importing TrueType fonts with names containing blanks

Henning von Bargen H.vonBargen at t-p.com
Fri Nov 30 03:05:40 EST 2007



> Tim Roberts wrote:

> As long as you make the same change when you are looking up the font

> name in Canvas.setFont, no one should be able to tell the difference.

> It comes down to a philosophy issue. Should the name be fixed up

> without the user's knowledge, or should the user change the

> name himself in response to an error?


The user cannot change the name himself, because this would mean
changing the (binary) TTF file.
Well, this *is* possible, but you need some special tools and a good
knowledge about fonts, and since a TTF is a piece of software, it
might not even be allowed to change it.
Of course it's a bug in the TTF if the specified PSName is invalid,
but since it cannot be easily fixed, a workaround is the best option;
so
+1 for replacing ' ' with '-'.

Henning


More information about the reportlab-users mailing list