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

Rich Shepard rshepard at appl-ecosys.com
Thu Nov 29 11:20:13 EST 2007


On Thu, 29 Nov 2007, Robin Becker wrote:


> I have a strong feeling that the font postscript names aren't supposed to

> contain blanks I think because they're supposed to be simple tokens in ps

> or somesuch. I'm not an expert on TTF or postscript so perhaps someone

> else should enlighten us.


TrueType font names have no spaces, e.g.,
/usr/X11R6/lib/X11/fonts/TrueType/tt0155m_.ttf
/usr/X11R6/lib/X11/fonts/TrueType/tt0811m_.ttf
/usr/X11R6/lib/X11/fonts/TrueType/verdanab.ttf
/usr/X11R6/lib/X11/fonts/TrueType/verdanai.ttf
/usr/X11R6/lib/X11/fonts/TrueType/verdanaz.ttf
/usr/X11R6/lib/X11/fonts/TrueType/combull.ttf
/usr/X11R6/lib/X11/fonts/TrueType/arialbd.ttf
/usr/X11R6/lib/X11/fonts/TrueType/arialbi.ttf
/usr/X11R6/lib/X11/fonts/TrueType/lucon.ttf
/usr/X11R6/lib/X11/fonts/TrueType/tahoma.ttf
/usr/X11R6/lib/X11/fonts/TrueType/tt0156m_.ttf
/usr/X11R6/lib/X11/fonts/TrueType/tt0812m_.ttf
/usr/X11R6/lib/X11/fonts/TrueType/wasy10.ttf
/usr/X11R6/lib/X11/fonts/TrueType/cour.ttf

Microsoft uses spaces in names, but they're the only ones AFAIK. It's
always a PITA to try to deal with those broken file and document names.

Change the names to remove the spaces and problems go away.

Rich

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863


More information about the reportlab-users mailing list