[reportlab-users] PDFMetrics.RegisterFont should walk into subdirectories
Hosam Aly
haly at centrivision.com
Tue Nov 24 07:44:04 EST 2009
Hello,
I am having a small problem with
`reportlab.pdfbase.pdfmetrics.registerFont`. This method currently looks
for fonts in the directories specified in `rl_config.TTFSearchPath`, but
does not descend into subdirectories. This is problematic, because in
Ubuntu 9.04 and 9.10 true type font files are in subdirectories of
'/usr/share/fonts', and thus `registerFont` does not find them.
I think `registerFont` should `os.walk` each of the directories in
`rl_config.TTFSearchPath`.
Best regards,
Hosam Aly
Software Engineer
Centrivision
More information about the reportlab-users
mailing list